My script collects source files with set files "$files $f" in a loop and later runs foreach f $files. It broke as soon as one path was C:/My Projects/top.v: that file shows up as two elements. In another script, foreach word $line on lines read from a log file stops with unmatched open brace in list.
I assumed a list was just a space-separated string. What is a Tcl list really, and what is the right way to build one and to break text into one?




