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
- apply (Part of Tcl 8.5)
- array
- auto_execok
- auto_import
- auto_load
- auto_mkindex
- auto_qualify
- auto_reset
- bgerror
- binary
- break
- case
- catch
- cd
- chan (Part of Tcl 8.5)
- clock
- close
- comment - not a command but information on Tcl comments
- concat
- continue
- dde - a Windows specific package
- dict
- 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
- lassign (Part of Tcl 8.5)
- library - not a command, but information about a group of commands
- lindex
- linsert
- list
- llength
- load
- lrange
- lrepeat (Part of Tcl 8.5)
- lreplace
- lreverse (Part of Tcl 8.5)
- lsearch
- lset
- lsort
- tcl::mathfunc (Part of Tcl 8.5) not a command, but information about a namespace containing math functions
- tcl::mathop (Part of Tcl 8.5) not a command, but information about a namespace containing math operator functions
- memory - specialty command not available by default
- msgcat - package for internationalization of dialogs
- namespace
- open
- opt - package for parsing command line arguments
- package
- packagens - man page name for the pkg::create command
- parray
- pid
- platform (Part of Tcl 8.5) a package for determining platform specific information package
- platform_shell (Part of Tcl 8.5) a package for determining platform specific information
- pkg::create
- pkgMkIndex
- proc
- puts
- pwd
- re_syntax - not a command, but information about regular expression syntax
- read
- refchan (Part of Tcl 8.5)
- 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 - a package used for test suites
- tclvars - not a command, but information about variables created by Tcl
- tell
- time
- tm - (part of Tcl 8.5) information on the Tcl Modules package
- trace
- unknown
- unload (part of Tcl 8.5)
- 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
Also, take a look at # and comment, where Tcl comment notation is discussed.
For a nice printed quick reference guide to Tcl and Tk, see BOOK TCL/TK Pocket Reference, which also has a link to a newer community version available for download."Static syntax analysis" is a related topic.