Re: Brace expansion bug

2012-03-26 Thread Dan Douglas
On Monday, March 26, 2012 08:07:00 AM you wrote: > On 03/26/2012 07:56 AM, Dan Douglas wrote: > > Don't know how much I'm allowed to quote here, but a quick read of the > > POSIX parsing rules and parameter expansion sections suggest to me that > > the start of the parameter expansion should be th

Re: Brace expansion bug

2012-03-26 Thread Eric Blake
On 03/26/2012 07:56 AM, Dan Douglas wrote: > Don't know how much I'm allowed to quote here, but a quick read of the POSIX > parsing rules and parameter expansion sections suggest to me that the start > of the parameter expansion should be the most important factor, and that > nested quotes and

Re: Brace expansion bug

2012-03-26 Thread Dan Douglas
On Monday, March 26, 2012 01:44:58 PM you wrote: > Dan Douglas writes: > > Hi, hopefully a self-explanatory one today: > > ~ $ ( set -x -- {a..c}; echo "${*-"{1..3}"}" ) > > + echo 'a b c' 'a b c' 'a b c' > > a b c a b c a b c > > > > ~ $ ( set -x -- {a..c}; echo "${*/"{1..3}"

Re: Brace expansion bug

2012-03-26 Thread Andreas Schwab
Dan Douglas writes: > Hi, hopefully a self-explanatory one today: > > ~ $ ( set -x -- {a..c}; echo "${*-"{1..3}"}" ) > + echo 'a b c' 'a b c' 'a b c' > a b c a b c a b c > > ~ $ ( set -x -- {a..c}; echo "${*/"{1..3}"/$*}" ) > + echo 'a b c' 'a b c' 'a b c' > a b c a b c a

Brace expansion bug

2012-03-26 Thread Dan Douglas
Hi, hopefully a self-explanatory one today: ~ $ ( set -x -- {a..c}; echo "${*-"{1..3}"}" ) + echo 'a b c' 'a b c' 'a b c' a b c a b c a b c ~ $ ( set -x -- {a..c}; echo "${*/"{1..3}"/$*}" ) + echo 'a b c' 'a b c' 'a b c' a b c a b c a b c I'm told similar glitches have be