0605 as an octal number is 389. So 389/100 = 3 when truncated.
On 10/9/09 9:30 AM, "Scully, William P" <[email protected]> wrote: > I've reported this to the vendor but I found this error a bit > astonishing: > > # ksh -vx poo.ksh > date=0605 > + date=0605 > ((mm=${date}/100)) > + ((mm=0605/100)) > echo ${mm} > + echo 3 > 3 > exit 0 > + exit 0 > > I get this result on SLES 10. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
