I can\'t get printf to print a variable with the %e descriptor in a bash script. It would just say
printf
#!/bin/bash a=14.9 printf %e 14.9;
I bumped into this error and found this page. In my case, it was 100% pilot error.
month=2 printf "%02d" month
it should be
printf "%02d" "${month}"
or more simply
printf "%02d" $month