On Mon, Sep 12, 2011 at 5:08 PM, Tobias Ulmer wrote:
>
> Fix your script, add the leading zero after you're done with the
> calculation.
>
I'm already doing that, just wasn't sure if it was a bug...
Thanks.
On Mon, Sep 12, 2011 at 04:45:28PM -0500, Abel Abraham Camarillo Ojeda wrote:
> Some of our shell scripts that work with dates and do something like:
>
> month=`date +%m`
> something && month=$((month-1))
>
> Suddenly started crashing on august... there seems to be a bug identifying
> not-numbers
Some of our shell scripts that work with dates and do something like:
month=`date +%m`
something && month=$((month-1))
Suddenly started crashing on august... there seems to be a bug identifying
not-numbers (numbers with leading zeroes) before '08' (eigth), how to reproduce:
$ for i in 0{0,1,2,3,