Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 645

Comment by Kamil Maciorowski on How to insert argument separating space into brace expansion preamble?

$
0
0
I don't see the point of the first part of this answer. First you correctly notice that {"-c root."} in {"-c root."}{foo,bar,baz} does not expand, then you deal with this "problem" by introducing {"-c root.",#} which gives you words that start with #. They are not comments (your echo did print them), unless you eval the result. It so happens eval is a "solution" to the problem of -c root.foo being a single word, but the OP had this exact problem from -c\ root.{foo,bar,baz}. Why don't we just evalthis? Why complicate things with the additional brace expansion and #?

Viewing all articles
Browse latest Browse all 645

Trending Articles