[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'
a-{b}-c
seems to me current behavior is inconsistent
-mike
- incorrect brace expansion, Tim Waugh, 2006/01/27
- Re: incorrect brace expansion, Bob Proulx, 2006/01/28
- Re: incorrect brace expansion,
Mike Frysinger <=
- Re: incorrect brace expansion, Bob Proulx, 2006/01/29
- Re: incorrect brace expansion, Mike Frysinger, 2006/01/29
- Re: incorrect brace expansion, William Park, 2006/01/29
- Re: incorrect brace expansion, Chris F.A. Johnson, 2006/01/29
- Re: incorrect brace expansion, William Park, 2006/01/29
- Re: incorrect brace expansion, Mike Frysinger, 2006/01/29
- Re: incorrect brace expansion, William Park, 2006/01/29
- Re: incorrect brace expansion, Mike Frysinger, 2006/01/29
- Re: incorrect brace expansion, William Park, 2006/01/29
- Re: incorrect brace expansion, Chet Ramey, 2006/01/29