On Saturday 28 January 2006 16:47, Bob Proulx wrote:
> Tim Waugh wrote:
> >     echo a-{b{d,e}}-c
> >
> >     Should get: a-{bd}-c a-{be}-c
> >     but actually get: a-bd-c a-be-c
>
> Hmm...  But csh is the origin of the brace expansion feature.  So
> shouldn't bash behave like csh?  Which bash does do at this time.
>
>   csh -c 'echo a-{b{d,e}}-c'
>   a-bd-c a-be-c
>   bash -c 'echo a-{b{d,e}}-c'
>   a-bd-c a-be-c
>
> What is the basis for the belief that it should get the other output?

bash -c 'echo a-{b}-c'
a-{b}-c

seems to me  current behavior is inconsistent
-mike


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to