On Thu, Sep 15, 2011 at 4:19 PM, Pascal Stumpf <pascal.stu...@cubes.de> wrote: > 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 > >
Yep, I did that in some scripts, just don't know how portable it is...