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: "Pit Linnartz" Subject: Re: No subject was specified. Date: 1999/09/21 Message-ID: <7s81an$lpc$1@gamma.ecomp.net>#1/1 X-Deja-AN: 527820092 References: <37E705E1.D1303F3A@cwo.com.au> X-Server-Date: 21 Sep 1999 13:31:03 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: e.comp Engineering GmbH, Germany Newsgroups: comp.unix.osf.osf1 could you tell us a bit more about the environment. being used (ex awk, OS version etc) at first look I would guess it's interpreted as octal values, so 08 etc is hard to reach Pit Wallace Liu wrote in message <37E705E1.D1303F3A@cwo.com.au>... > Hi , > >I am confused by the output of printf command: > >d=07 >printf "%02d\n" $d >the system print 07; > >d=05 >printf "%02d\n" $d >the system print 05; > > > >d=09 >printf "%02d\n" $d >the system print this message to me: >printf: 09 not completely converted >00 > > >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? > >Thanks > > > >