bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect brace expansion


From: Chet Ramey
Subject: Re: incorrect brace expansion
Date: Sun, 29 Jan 2006 21:19:33 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

William Park wrote:

>> side note, this also fails:
>> $ echo {a}{b,c}
>> {a}{b,c}
>> -mike
> 
> But,
>     echo {b,c}{x}
> prints the correct result,
>     b{x} c{x}
> 
> Well, gentlemen, we've found a bug.  Anyone sending in a patch?  I don't
> use multiple braces that often, so it doesn't bother me. :-)

Don't bother, I already fixed it.  When I fixed the problems with braces
that don't begin a valid brace expansion sequence, it was easy to change
the behavior you're arguing about.  The old csh-compatible behavior will
be available with a #define.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]