This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygwin-1.7.7: tclsh84 does not pass environment to exec sub-process
- From: "Stas Maximov" <smaximov at broadcom dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 29 Oct 2010 16:39:03 -0700
- Subject: cygwin-1.7.7: tclsh84 does not pass environment to exec sub-process
Hello!
Using cygwin 1.7.7, tclsh84 does not pass its environment to a sub-process created with exec command.
Test case:
# Starting from cygwin bash command line,
# record your current environment
$ env | sort > env0.txt
# Start tclsh84
$ tclsh84
# Execute the same command from tclsh84, exit
% exec env | sort > env1.txt
% exit
# Compare two environments
$ diff -u env0.txt env1.txt
# Observe large number of environment variables not present in env1.txt.
Questions:
1. Is this new to 1.7? My vague recollection is that this was not a problem in cygwin 1.5.
2. Is there a quick workaround? E.g. tclsh flag or environment variable or replacing cygwin1.dll with older version.
Please CC me when replying.
Best regards,
Stas.