Re: ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-12 Thread Abel Abraham Camarillo Ojeda
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.

Re: ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-12 Thread Tobias Ulmer
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

ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-12 Thread Abel Abraham Camarillo Ojeda
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,