delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/24/14:08:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Cygwin 1.7.7, User Variables, User Profiles
Date: Wed, 24 Nov 2010 20:07:46 +0100
Lines: 24
Message-ID: <icjnq2$iio$1@dough.gmane.org>
References: <12743_1290586397_4CECC91D_12743_11770_1_OFF985DD98 DOT 3E9EB25A-ONC12577E5 DOT 002D1C9E-C12577E5 DOT 002D283C AT nbg DOT sdv DOT spb DOT de>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/3.0.4
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

* rudolf DOT bendl AT extern DOT sdv-it DOT de (Wed, 24 Nov 2010 09:13:14 +0100)
> I try to invoke the "set" command over ssh to a Cygwin 1.7.7 server
> and would expect that I get the variables I have defined in 
> $HOME/user/.profile

> ...
> TEST=test
> export TEST
> ....

That's equivalent to "export TEST=test".
 
> But I dont see the variables I defined in $HOME/user/.profile. What
> can I do?

Define them in the right place: $HOME/.profile instead of 
$HOME/user/.profile. And make sure there is no .bash_profile.

Actually .bash_profile would be even better. And .bashrc would be even 
better better (since it's recommended to leave .bash_profile empty 
except a source statement for .bashrc (which is the default in Cygwin 
anyway)).

Thorsten


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019