This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.5: sshd environment variables
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 01 May 2010 20:52:55 -0400
- Subject: Re: 1.7.5: sshd environment variables
- References: <201005010750.10907.plr.vincent@gmail.com>
- Reply-to: cygwin at cygwin dot com
On 5/1/2010 1:50 AM, Vincent Pelletier wrote:
Hi.
I've just installed cygwin on winxp, for some wine comparative testing.
To make it easier for me, I installed ssh package and started sshd service so
I could do as much as possible from my main Linux box.
But I noticed the following difference:
- on a windows cygwin term:
$ cmd /c echo "%ProgramFiles%"
C:\Program Files
- on an ssh session:
$ cmd /c echo "%ProgramFiles%"
%ProgramFiles%
which breaks the script[1] I'm testing.
Is it a bug ?
No. 'ssh' is a secure shell so it has a minimal environment.
If not, how can I make ssh session get the same environment variables as a
"regular" (ie, not remote) cygwin terminal ?
You can add whatever variables you want and need to a script you can run
as part of the login or just after, depending on your needs.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
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