incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Brown" <mark.g.br...@gmail.com>
Subject Re: svn commit: r628839 - /stdcxx/trunk/tests/self/0.braceexp.cpp
Date Thu, 21 Feb 2008 22:40:09 GMT
On 2/19/08, Martin Sebor <sebor@roguewave.com> wrote:
> Travis Vitek wrote:
>  > sebor-2 wrote:
>  >> +    // weirdly-formed brace expansions -- fixed in post-bash-3.1
>  >> +    TEST ("a-{b{d,e}}-c",    "a-{bd}-c a-{be}-c");
>  >>
>  >
>  > I don't understand how this could be interpreted as valid brace expansion at
>  > all. The body of the expansion is '{b{d,e}}'. Paragraph 5 [and paragraph 1
>  > for that matter] require a correctly-formed brace expansion have unquoted
>  > [unescaped?] opening and closing braces, and at least one unquoted comma or
>  > a valid sequence expression. The body does not meet either of these
>  > requirements, so it must be invalid.
>  >

The C-Shell that had brace expansion long before Bash did outputs
a-bd-c a-be-c as Martin expects. It doesn't require a comma at all.

>  >
>  >
>  > sebor-2 wrote:
>  >> +    TEST ("a-{bdef-{g,i}-c", "a-{bdef-g-c a-{bdef-i-c");
>  >>
>  >
>  > Again, this does not seem correct according to the requirements of paragraph
>  > 5 [and 1].

The C-Shell complains about a missing brace in this expression.

-- Mark

Mime
View raw message