Re: tclsh does not export changes to env to child process

2015-07-04 Thread Duncan Roe
> > On Mon, Jun 29, 2015 at 2:45 PM, Stas Maximov > > wrote: > > > Hi, > > > > > > 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 $e

Re: tclsh does not export changes to env to child process

2015-06-30 Thread Stas Maximov
Interestingly, if environment variable FILENAME was exported when tclsh called, the test passes. Tclsh falis to export only new env variable. Compare two results: $ env FILENAME=gaga tclsh test_env_export1.tcl filename_val filename_val vim vim $ env -u FILENAME tclsh test_env_export1.tcl filename_

Re: tclsh does not export changes to env to child process

2015-06-30 Thread Stas Maximov
Yakov, Thanks for the reply. Apologies for confusion. 8.5 was version of tcl as reported by tcl_version. Please find below more information. Note that "filename_val" is printed only once -- by tclsh, but the child (bash) does not see environment variable FILENAME. Any specific information that y

Re: tclsh does not export changes to env to child process

2015-06-29 Thread Yaakov Selkowitz
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}] >

tclsh does not export changes to env to child process

2015-06-29 Thread Stas Maximov
Hi, 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}] --