[Top][All Lists]

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

Re: incorrect brace expansion

From: Mike Frysinger
Subject: Re: incorrect brace expansion
Date: Sun, 29 Jan 2006 02:50:32 -0500
User-agent: KMail/1.9

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'

seems to me  current behavior is inconsistent

reply via email to

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