Code: Select all
foreach var {a b c d e f} {set $var [string trim $$var ^]}
Code: Select all
foreach var {a b c d e f} {set $var [string trim $[subst -nocommands -nobackslashes $var] ^]}
Code: Select all
foreach var {a b c d e f} {set $var [string trim $$var ^]}
Code: Select all
foreach var {a b c d e f} {set $var [string trim $[subst -nocommands -nobackslashes $var] ^]}