next up previous index
Next: Backslash Substitution Up: Interpretation Principles Previous: Variable Substitution

Command Substitution

A command enclosed in square brackets represents the value which is returned when this command is evaluated. This is the usual way to create nested commands:

set a [expr 3 + 2]
set b [expr [lindex $list 5] - 1]


Micha Meier
Tue Jul 2 09:49:39 MET DST 1996