Command Substitution



Sample command
set b 8 set a [expr $b+2] set a "b-3 is [expr $b-3]"
Syntax: [script]
Evaluate script, substitute result.
May occur anywhere within a word.
Result
8 10 b-3 is 5

Previous slide Next slide Back to the index View Graphic Version

Notes:

No notes for slide 8