X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: sshd-started sessions don't see system environment? Date: Thu, 22 Mar 2007 14:44:11 -0700 Lines: 18 Message-ID: References: <45FB0184 DOT 9204D1A1 AT dessent DOT net> <4602F68B DOT F9341EEE AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070116 Thunderbird/2.0b2 Mnenhy/0.7.5.666 In-Reply-To: <4602F68B.F9341EEE@dessent.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Brian Dessent wrote: > I suppose a way to reconcile these would be a utility that you call from > ~/.profile that enumerates the list of environ key/value pairs from the > registry and installs them into the process' environment. That's an interesting idea. regtool list -v "/machine/SYSTEM/CurrentControlSet/Control/Session Manager/Environment" and regtool list -v "/user/Environment" Thanks! At least the germ of an idea (it'll need some work, obviously; putting all the settings again into .bash_profile is probably a lot easier :-). -- 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/