[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect brace expansion
From: |
William Park |
Subject: |
Re: incorrect brace expansion |
Date: |
Sun, 29 Jan 2006 20:35:54 -0500 |
User-agent: |
Mutt/1.4.2.1i |
On Sun, Jan 29, 2006 at 08:16:40PM -0500, Mike Frysinger wrote:
> On Sunday 29 January 2006 20:08, William Park wrote:
> > On Sun, Jan 29, 2006 at 07:33:14PM -0500, Chris F.A. Johnson wrote:
> > > On Sun, 29 Jan 2006, William Park wrote:
> > > >Let's see...
> > > > a-{b{d,e}}-c
> > > > a-{bd,be}-c
> > > > a-bd-c a-be-c
> > > >
> > > >It looks okey, I think.
> > >
> > > Except that b{d,e} expands to 'bd be', not 'bd,be'.
> >
> > Hmm... no. Internally,
>
> arguing for what goes on internally shouldnt have bearing on what the
> user result is ... and in this case, the user result would be as Chris
> says imho -mike
b{d,e} gives you 2 strings. You can put any separator you want between
'bd' and 'be' when printing them out. If IFS='x', then should the
answer be
a-{bdxbe}-c
?
--
William Park <opengeometry@yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
http://freshmeat.net/projects/bashdiff/
- incorrect brace expansion, Tim Waugh, 2006/01/27
- Re: incorrect brace expansion, Bob Proulx, 2006/01/28
- Re: incorrect brace expansion, Mike Frysinger, 2006/01/29
- 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 <=
- 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