delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/02/04:45:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 2 Aug 2005 10:45:25 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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: <E9D421793368D44FB81D3C438D300574CE16DD AT EX5 DOT d DOT ethz DOT ch> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050727101947 DOT 03dc4ed0 AT pop DOT prospeed DOT net> <E9D421793368D44FB81D3C438D300574CE16DF AT EX5 DOT d DOT ethz DOT ch> <dcj787$r63$1 AT sea DOT gmane DOT org> <E9D421793368D44FB81D3C438D300574CE16EF AT EX5 DOT d DOT ethz DOT ch>
Mime-Version: 1.0
In-Reply-To: <E9D421793368D44FB81D3C438D300574CE16EF@EX5.d.ethz.ch>
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/

- Raw text -


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