From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2175e42c8841bb13 X-Google-Attributes: gidfee84,public From: Claus Divossen Subject: Re: No subject was specified. Date: 1999/09/26 Message-ID: <37ED5389.42E21044@phoenix.rhein.de>#1/1 X-Deja-AN: 529560367 Content-Transfer-Encoding: 7bit References: <37E705E1.D1303F3A@cwo.com.au> <37E813E4.D22C0843@cwo.com.au> Organization: Private Internet Site, St. Augustin Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Wallace Liu wrote: > > d=08 > > printf "%02d\n" $d > > the system print this message to me: > > printf: 08 not completely converted > > 00 > > > > I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command > > does not complete convert 09 and 08? > > Assignments with leading zeros are interpreted as octal values. 09 and 08 are no valid representations of octal numbers and hence can not be reformated as numbers. - Claus.