diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-09-28 07:33:19 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:54 +1000 |
commit | 73b6640e994c4c954d54894a16acd5a151899c3a (patch) | |
tree | 073587ee55b51b159ad5c3e7775c30d2a7716bf3 /jim_tcl.txt | |
parent | ff0f40d8ec4af2399e6265d731c8070987e24270 (diff) | |
download | jimtcl-73b6640e994c4c954d54894a16acd5a151899c3a.zip jimtcl-73b6640e994c4c954d54894a16acd5a151899c3a.tar.gz jimtcl-73b6640e994c4c954d54894a16acd5a151899c3a.tar.bz2 |
Use $::env to build environment for exec
Also, switch to using 'sh -c' for the vfork() implementation
because it then allows command line redirection, pipes and
setting the environment.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index d76b6c9..126e260 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -80,6 +80,7 @@ Since v0.62: 18. Command pipelines via open "|..." are now supported 19. Add 'info references' 20. Add support for 'after *ms*', 'after idle', 'after info', 'update' +21. 'exec' now sets environment based on $::env Since v0.61: @@ -1917,6 +1918,9 @@ option in 'catch') will be set to a list, as follows: identifier (in decimal) and the code element will be the exit code returned by the process (also in decimal). +The environment for the executed command is set from $::env (unless +this variable is unset, in which case the original environment is used). + exit ~~~~ +*exit* '?returnCode?'+ |