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
- 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
- eq - equal
- 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
- mathfunc (Part of Tcl 8.5) not a command, but information about a namespace containing math functions
- 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
- namespace
- ne - not equal
- open
- 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 - not a command, but a library
- 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:
There are also a number of special shell environment variables which can influence Tcl behavior. These include:
For a nice printed quick reference guide to Tcl and Tk, see [L1 ] for the original and see [L2 ] (broken link) for a community member's update. "Static syntax analysis" is a related topic.
[Category Package|Category Syntax]