On Thu, Sep 15, 2011 at 12:06:14PM +0000, Thorsten Glaser wrote: > Abel Abraham Camarillo Ojeda <acamari <at> verlet.org> writes: > > > Some of our shell scripts that work with dates and do something like: > > > > month=`date +%m` > > something && month=$((month-1)) > > month=10#$(date +%m)
Is that a mkshism? The easiest solution here is: typeset -Z2 month