[Solved] How do bash variable types work and how to work around automatic interpretation?
[ad_1] By doing ((aStr = $(printf %03d $a))), you are destroying again the careful formatting done by printf. You would see the same effect if you do a (( x = 005 )) echo $x which outputs 5. Actually the zeroes inserted by printf could do harm to your number, as you see by the … Read more