On my local machine, where I run CentOS 7.2, when I do this:
for i in {8..12}; do echo ${i}; done
I got:
8
9
10
But when I do this:
for i in {08..10}; do echo ${i}; done
I got:
08
09
10
But on server to which I have access, which runs CentOS 5.6, running both commands results in the same output:
8
9
10
Why there are no zeroes in front of 8 and 9? Is it because of bash version, or just environment configuration? Can I change it per session or permanently, so my server will put that zero in front of numbers smaller than 10?