In zsh, I get the expected result from both of these brace expansions:
$ touch file-{001..100} $ touch file-{1..100} The first one gives me files named file-001, file-002, etc., all the way to file-100. The second one gives me files named file-1, file-2, etc., all the way to file-100.
In bash, however, both give me files named file-1, file-2, etc. This strikes me as a pretty major bug (or design flaw) in bash's brace expansion.
Is there any way to configure bash to do the right thing in this case?
$BASH_VERSION = 4.1.10(4)-releasehimBH 3.00.16(1)-releasefromecho $- $BASH_VERSION. Locally I gethimvBH 3.2.17(1)-release. Both expand to 1-100 instead of 001-100.