Re: Brace expansion bug

2012-03-27 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/26/12 6:32 AM, Dan Douglas wrote: 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}/$*} )

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 been

Re: Brace expansion bug

2012-03-26 Thread Andreas Schwab
Dan Douglas orm...@gmail.com 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

Re: Brace expansion bug

2012-03-26 Thread Dan Douglas
On Monday, March 26, 2012 01:44:58 PM you wrote: Dan Douglas orm...@gmail.com 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

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 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 the most