diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-10-14 16:10:49 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-20 10:14:42 +1000 |
commit | 7e49edb64137275cf35e60c0a8e8e596a1fd5fc3 (patch) | |
tree | 2ae3f5c9d825e8b682f31125ffd0f4ce945b7940 /jim_tcl.txt | |
parent | ad3f49ba9d88bb6bfb67b4cc3806736857151ab0 (diff) | |
download | jimtcl-7e49edb64137275cf35e60c0a8e8e596a1fd5fc3.zip jimtcl-7e49edb64137275cf35e60c0a8e8e596a1fd5fc3.tar.gz jimtcl-7e49edb64137275cf35e60c0a8e8e596a1fd5fc3.tar.bz2 |
Set $argc in jimsh
Apparently tclsh does this. It is just [llength $argv]
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 a11177f..0e9a780 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -4285,6 +4285,10 @@ The following global variables are set by jimsh. If jimsh is invoked to run a script, this variable contains a list of any arguments supplied to the script. ++*argc*+:: + If jimsh is invoked to run a script, this variable contains the number + of arguments supplied to the script. + +*jim_argv0*+:: The value of argv[0] when jimsh was invoked. |