Re: Brace expansion padding inconsistencies

2011-08-10 Thread Chet Ramey
On 8/10/11 4:43 PM, gregry . wrote: > bash> echo {0..9..2} > 0 2 4 6 8 > bash> echo {00..9..2} > 00 02 04 06 08 > bash> echo {0..09..2} > 0 2 4 6 8 > bash> echo {00..09..2} > 0 2 4 6 8 > > The first two are as expected, but the last two have unexpected addi

Brace expansion padding inconsistencies

2011-08-10 Thread gregry .
Brace expansion using incrementers sometimes produces unexpected results with regard to padding. Note the following 4 examples not using incrementers: bash> echo {0..9} 0 1 2 3 4 5 6 7 8 9 bash> echo {00..9} 00 01 02 03 04 05 06 07 08 09 bash> echo {0..09} 00 01 02 03 04 05 06 07 08 09 bash> ech