Purpose: Collection point for list of Tcl command reference pages (not always the full and official man page, but always with additional notes and links to related articles). Also see [Tk syntax help]. I hope that people will add code to these pages showing [Best Practices] with regard to using these Tcl and Tk commands. Beyond these, see also [Tcl core extension syntax] for the syntax of extensions packaged with the core, and [BNF for Tcl] for abstract context. Also see [Common Tcl Error Messages and Possible Explanations]. ---- The following is an alphabetical index to the script level commands in Tcl. [[Would people like a second sorting of Tcl commands, perhaps by function or some other ordering? If so, let us know what arrangement.]] ---- * For the eleven syntax rules of [Tcl], see the [Endekalogue] Wiki page. * [after] * [append] * [array] * [auto_execok] * [auto_import] * [auto_load] * [auto_mkindex] * [auto_qualify] * [auto_reset] * [bgerror] * [binary] * [break] * [case] * [catch] * [cd] * [clock] * [close] * [comment] - not a command but information on Tcl comments * [concat] * [continue] * [dde] - a Windows specific package * [encoding] * [eof] * [error] * [eval] * [exec] * [exit] * [expr] * [fblocked] * [fconfigure] * [fcopy] * [file] * [fileevent] * [filename] - not a command, but information about file names * [flush] * [for] * [foreach] * [format] * [gets] * [glob] * [global] * [history] * [http] - not a command, but a Tcl package for the [HTTP] protocol * [if] * [incr] * [info] * [interp] * [join] * [lappend] * [library] - not a command, but information about a group of commands * [lindex] * [linsert] * [list] * [llength] * [load] * [lrange] * [lreplace] * [lsearch] * [lset] * [lsort] * [memory] - specialty command not available by default * [msgcat] * [namespace] * [open] * [package] * [packagens] - man page name for the pkg::create command * [parray] * [pid] * [pkg::create] * [pkgMkIndex] * [proc] * [puts] * [pwd] * [re_syntax] - not a command, but information about regular expression syntax * [read] * [regexp] * [registry] - not a command, but a Windows specific package * [regsub] * [rename] * [resource] - Macintosh specific command * [return] * [safe] * [scan] * [seek] * [set] * [socket] * [source] * [split] * [string] * [subst] * [switch] * [tcl_endOfWord] * [tcl_findLibrary] * [tcl_startOfNextWord] * [tcl_startOfPreviousWord] * [tcl_wordBreakAfter] * [tcl_wordBreakBefore] * [tclLog] * [tcltest] - not a command, but a library * [tclvars] - not a command, but information about variables created by Tcl * [tell] * [time] * [trace] * [unknown] * [unset] * [update] * [uplevel] * [upvar] * [variable] * [vwait] * [while] ---- There are also a number of special [Magic names] variables in the core Tcl interpreter. Here is an index to these: * [argc] * [argv] * [argv0] * [auto_index] * [auto_oldpath] * [auto_path] * [env] * [errorCode] * [errorInfo] * [tclDefaultLibrary] on unix * [tcl_interactive] * [tcl_libpath] * [tcl_library] * [tcl_patchLevel] * [tcl_pkgPath] * [tcl_platform] * [tcl_precision] * [tcl_rcFileName] * [tcl_rcRsrcName] * [tcl_traceCompile] * [tcl_traceExec] * [tcl_version] ---- 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, see [HOMEPATH] * [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 ---- For a nice printed quick reference guide to Tcl and Tk, see [http://www.slac.stanford.edu/%7Eraines/tkref.html] for the original and see [http://www.mcs.net/%7Eimdave/] for a community member's update. "[Static syntax analysis]" is a related topic. ---- [[ [Category Package] ]]