This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: tclsh does not export changes to env to child process
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 29 Jun 2015 22:28:24 -0500
- Subject: Re: tclsh does not export changes to env to child process
- Authentication-results: sourceware.org; auth=none
- References: <CAO-z7kzjRBrADMYd1h79=VTdY8ME9jLKrFgg+-SFZvRDWduScw at mail dot gmail dot com>
On Mon, 2015-06-29 at 14:45 -0700, Stas Maximov wrote:
> Tcl shell does not export changes to array variable env:
> http://wiki.tcl.tk/env
>
> Test script: test_env_export1:
> --------- begin ----------
> set env(FILENAME) filename_val
> puts $env(PATH)
> puts [exec /bin/bash -c {echo $PATH}]
> puts $env(FILENAME)
> puts [exec /bin/bash -c {echo $FILENAME}]
> --------- end ----------
>
> Expect two lines of output "filename_val", receive only one. The bug
> affects 'guitool' feature of git-gui.
>
> cygwin 2.0.4-1
> tclsh 8.5
There is no 'tclsh 8.5' package. Your test case works for me with
the /usr/bin/tclsh provided by our tcl-8.5.18-1 package. Are you using
some other tclsh?
--
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple