There is a large section of code in proc TclReadLine::tclline {} that deals with glob substitution. This breaks the list expansion operator. This code:
set a [list 1 2 3 4]
+ {*}$a
Breaks because the * gets expanded to the list of files in the current working directory.
As a quick fix, commenting out all the glob substitution code in that function fixes the issue and the code list above current sums the numbers.
There is a large section of code in
proc TclReadLine::tclline {}
that deals with glob substitution. This breaks the list expansion operator. This code:Breaks because the
*
gets expanded to the list of files in the current working directory.As a quick fix, commenting out all the glob substitution code in that function fixes the issue and the code list above current sums the numbers.