Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 2 Aug 2005 10:45:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Re: problem with starting programs via ssh / cannot see environment variable Message-ID: <20050802084525.GD20781@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050727101947 DOT 03dc4ed0 AT pop DOT prospeed DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Aug 2 07:42, Giger Mathias wrote: > > the variables are system variables. it's quite mysterious, but only some of the > defined system variables can be seen when logging in via ssh. As already mentioned, > in a cygwin console on the respective host all the variables are available. > > the only way to overcome the problem was to redefine the environment variables > in the .bashrc file. There are various other ways to define these variables. However, not seeing the variables from the system environment is OpenSSH policy. The variables set resp. inherited by default is somewhat like the bare minimum to allow Windows applications to run. This is more or less equal to what the SSH daemon does on other operating systems. The child process only inherits a base set of environment variables and further environment entries have to be added afterwards. Bottom line: It's expected that you have to redefine the variable values by some measure in the child shell. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/