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

2015-06-30 Thread Stas Maximov
filename_val vim vim On Tue, Jun 30, 2015 at 9:39 AM, Stas Maximov wrote: > 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

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

2015-06-30 Thread Stas Maximov
lename_val puts $env(FILENAME) puts [exec /bin/bash -c {echo $FILENAME}] puts $env(EDITOR) puts [exec /bin/bash -c {echo $EDITOR}] $ tclsh test_env_export1.tcl filename_val vim vim On Mon, Jun 29, 2015 at 2:45 PM, Stas Maximov wrote: > Hi, > > Tcl shell does not export changes to

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}] --

cygwin-1.7.7: tclsh84 does not pass environment to exec sub-process

2010-10-29 Thread Stas Maximov
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