aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-10-28 09:19:20 +1000
committerSteve Bennett <steveb@workware.net.au>2014-10-28 09:24:37 +1000
commit7cc11e7898250b5551da49ce1e719fcd8311c664 (patch)
treee9a11fd9f265464030f7bf8f73aec50cb530a235 /jim_tcl.txt
parent28442e31d396752efa039fee7c2d805ba3a3d92c (diff)
downloadjimtcl-7cc11e7898250b5551da49ce1e719fcd8311c664.zip
jimtcl-7cc11e7898250b5551da49ce1e719fcd8311c664.tar.gz
jimtcl-7cc11e7898250b5551da49ce1e719fcd8311c664.tar.bz2
Fix [info nameofexecutable] after [cd]
If argv0 is a relative path, [info nameofexecutable] returned the wrong result after changing directory. So calculate and stash the result during init. Also move internal $jim_argv0 into namespace jim as $jim::argv0 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index d6172b9..53d053a 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -4955,7 +4955,7 @@ The following global variables are set by jimsh.
If jimsh is invoked to run a script, this variable contains the number
of arguments supplied to the script.
-+*jim_argv0*+::
++*jim::argv0*+::
The value of argv[0] when jimsh was invoked.
CHANGES IN PREVIOUS RELEASES