| |
expr
command performs its own round of substitutions on variables and commands, so you should use braces to prevent the Tcl interpreter doing this as well (leading to double substitution)expr
behind the scenes in order to evaluate test expressions, such as if
, while
and for
loops, discussed in later sections.