Travis Vitek wrote:
Martin Sebor wrote:I agree. I just realized that the shell also allows spaces in brace expansions, they just need to be escaped: $ echo a{b, }c " | " x{y,' '}z a{b, }c | xyz x zYou must be using bash, because csh pukes when brace expanding the token "a{b" because it has an unmatched unescaped open brace.
I think I was actually using zsh, but yes, the first one is another one of those corner cases. The point of the example was the second expansion with the embedded space, which should be handled the same by all shells (with the space being treated as a <string>). Martin
