X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=4.7 required=5.0	tests=AWL,BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4E6A96D9.90801@cygwin.com>
Date: Fri, 09 Sep 2011 18:44:41 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: setting environment for bash running via cygserver
References: <loom.20110909T192501-772@post.gmane.org> <4E6A820A.5020904@cygwin.com> <loom.20110910T003533-224@post.gmane.org>
In-reply-to: <loom.20110910T003533-224@post.gmane.org>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 9/9/2011 6:36 PM, Alan Sinclair wrote:
> I had thought that/home/me/.bash_profile gets read when starting a
> non-login shell, so tried to export variables there, but I must be
> misunderstanding something. The environment my script gets via ssh is different
> than I get when logged in via ssh, which is different again from when I'm logged
> in directly on the computer, and I'd like to understand why.

Environment variables that aren't required in the SSH session (to make a
successful session) are stripped out for security reasons.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

