delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=3.2 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
Message-id: | <50CF6CCB.4080803@cygwin.com> |
Date: | Mon, 17 Dec 2012 14:04:43 -0500 |
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 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Passing PROCESSOR_ARCHITECTURE env var from Cygwin sshd into my ssh session. |
References: | <87pq2bvvnb DOT fsf AT gavenkoa DOT example DOT com> |
In-reply-to: | <87pq2bvvnb.fsf@gavenkoa.example.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 12/15/2012 4:43 PM, Oleksandr Gavenko wrote: > I setup VirtualBox and Windows in it and setup sshd under Cygwin. > > Further development I perform in original Debian distro from ssh+Emacs+Cygwin. > > I need to compile a project with native Scons+MSVC. To do this I installed > appropriated software and wrote batch-file wrapper (which setup PATH and other > vars). > > Scons script fail at code that check PROCESSOR_ARCHITECTURE env var. > > "set | grep PROCESSOR" is empty in my ssh session! > > As workaround I just set this variable at my batch-file wrapper. > > But I don't understand why this env var was not set. While many other > variables are set (like WINDIR, SYSTEMROOT, PROGRAMFILES). > > Is that a bug? No, it's a feature and a security one at that. Exposing allot of environment variables through sshd is a security hole. To plug it, only the minimum environment needed is provided. You can add to that with external scripts of your own. > How to make this variable be passed into my ssh session permanently but > without editing .bashrc? I'd recommend a separate script that you can run after you login by some convenient means of your own choosing. This keeps it from cluttering up your .bashrc file. But that's just a suggestion. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |