2

using GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12):

$ echo {1..10}
1 2 3 4 5 6 7 8 9 10

$ echo {01..10}
1 2 3 4 5 6 7 8 9 10

$ echo {1..10..2}
{1..10..2}

I get the same results if I put these into a script and run it as bash brace_test.csh

Why aren't zero-padding and explicit-increment working?

4

1 回答 1

5

bash在4中添加了零填充和步长。

于 2013-06-13T17:00:35.690 回答