Version 21 of tclvars

Updated 2014-05-24 00:03:45 by pooryorick

tclvars , a page in the official documentation, describes the built-in Tcl variables

See Also

Magic names
Tcl syntax

Documentation

official reference

Description

$argc
the number of arguments the script was called with.
$argv
a list of arguments passed to the script. Unlike C, $argv does not include the name of the application itself among the argument list. For that, there is $argv0.
$argv0
the name of the interpreter itself
$auto_execs
Used by auto_execok to record information about whether particular commands exist as executable files.
$auto_index
Used by auto_load to save the index information read from disk.
$auto_noexec
$auto_noload
$auto_oldpath
$auto_path
$dir
$env
$env(TCL_LIBRARY)
$env(TCLLIBPATH)
$errorCode
$errorInfo
$tclDefaultLibrary
on unix
$tcl_interactive
$tcl_libpath
   `[tcl_library%|%$tcl_library]`:  not to be confused with `[TCL_LIBRARY%|%$env(TCL_LIBRARY)]`  
$tcl_patchLevel
$tcl_pkgPath
$tcl_platform
$tcl_precision
$tcl_rcFileName
$tcl_rcRsrcName
$tcl_traceCompile
$tcl_traceExec
$tcl_version
$unknown_pending
$tcl_wordchars and $tcl_nonwordchars

There are also a number of special shell environment variables which can influence Tcl behavior. These include:

CC
COMSPEC
on Windows
HOME
HOMEDRIVE
on Windows
HOMEPATH
on Windows
LANG
LC_ALL
LC_CTYPE
PATH
PATHEXT
on Windows
SHLIB_CFLAGS
TCL_LIBRARY
TCLLIBPATH
TCLTEST_OPTIONS
TZ
on Windows
windir
on Windows