www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=4.5 required=5.0 tests=BAYES_05,BOTNET,RCVD_IN_DNSWL_NONE |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4BDCCCE7.7090002@cygwin.com> |
Date: | Sat, 01 May 2010 20:52:55 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.7.5: sshd environment variables |
References: | <201005010750 DOT 10907 DOT plr DOT vincent AT gmail DOT com> |
In-reply-to: | <201005010750.10907.plr.vincent@gmail.com> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |