delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/18/20:00:38

X-Spam-Check-By: sourceware.org
Date: Wed, 18 Jan 2006 20:00:30 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
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: <Pine DOT GSO DOT 4 DOT 63 DOT 0601181915540 DOT 20867 AT access1 DOT cims DOT nyu DOT edu> <20060119005520 DOT 19356 DOT qmail AT web35614 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
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
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019