stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r628839 - /stdcxx/trunk/tests/self/0.braceexp.cpp
Date Fri, 22 Feb 2008 17:13:55 GMT
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  z
>>
>>
> 
> You 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

Mime
View raw message