This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problen with run command and the environment
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/