Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glob substitutions break list expansion operator {*} #11

Open
JohnLunzer opened this issue Nov 21, 2019 · 0 comments
Open

glob substitutions break list expansion operator {*} #11

JohnLunzer opened this issue Nov 21, 2019 · 0 comments

Comments

@JohnLunzer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant