On Thu, Sep 15, 2011 at 09:58:13PM +0000, Thorsten Glaser wrote:
> >> typeset -Z2 month
> 
> That can break as soon as month is made an integer someplace down.

And that's very likely to happen ...

> Padding is meant for output, not input.
 
You don't know if $month is input or output.

> tg@stinky:~ $ /bin/ksh -c 'i=10#08; print $((i)) $(uname -a)'
> 8 SunOS stinky 5.8 Generic_117350-61 sun4u sparc SUNW,Sun-Fire-V210 Solaris
> 
> So, portable across all Korn shells.

Based on the invalid assumption that i is always evaluated inside an
arithmetical expression.

Reply via email to