X-Spam-Check-By: sourceware.org Date: Wed, 18 Jan 2006 20:00:30 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: problen with run command and the environment Message-ID: <20060119010030.GB3104@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <20060119005520 DOT 19356 DOT qmail AT web35614 DOT mail DOT mud DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060119005520.19356.qmail@web35614.mail.mud.yahoo.com> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 On Wed, Jan 18, 2006 at 04:55:20PM -0800, Jeff Hardy wrote: >Thanks for your reply. I'll attach next time. > >I'll accept what you say, but even environment variables that are in my >windows environment are not in the environment of programs run under >"run". By environment, I mean that if you type set in a cmd window, >you get the windows environment. Practically none of those environment >variables that appear when I type "set" in the cmd window are in >programs run under the cygwin "run" command. Also, this behaviour was >not observed in cygwin before I updated it recently. I looked at the >source of "run" and see all it does is a CreateProcess with NULL in the >environment pointer which I thought simply passes "run"'s environment >to the newly created process. I put a printf in run.c just before the >CreateProcess call and got the HOME environment variable and printed >it. The value that is printed is correct. The HOME environment >variable in the new process is incorrect. > >Any ideas? http://cygwin.com/ml/cygwin/2005-05/msg00587.html I've already alerted the run maintainer about this, FWIW. cgf -- 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/