Zero-padding in brace expansion was introduced in bash
version 4. But since you used "print
" and not "echo
" in your example, it appears that you may be using ksh
or another shell instead (and that's something you really should mention when you post). I'm not sure about the status in those other shells.
For more on zero-padding in bash, see here. It also includes a brief mention about using ksh's typeset