> > 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
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_
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
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}]
>
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}]
--
5 matches
Mail list logo