Isn't $+ used as some strange token to concat two strings? Ie when you need to combine a variable with a constant text without any space inbetween?
If so, there is no tcl-equivialence. Closest thing might be to enclose complex variable-names within {}.
Would simply be one of the below, depending on "point of view", with the first one being what you'd use to get info from a .dcc commandline, and second a more generic function call.
Code: Select all
"abc[lindex [split $variable] 0]def"
"abc${variable1}def"