On 2/19/08, Martin Sebor <[EMAIL PROTECTED]> 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

Reply via email to