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: Wallace Liu Subject: Re: No subject was specified. Date: 1999/09/22 Message-ID: <37E813E4.D22C0843@cwo.com.au>#1/1 X-Deja-AN: 528025288 Content-Transfer-Encoding: 7bit References: <37E705E1.D1303F3A@cwo.com.au> X-Accept-Language: en-GB,zh,zh-CN,zh-TW Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Organization: Optus Communications Mime-Version: 1.0 Reply-To: wallace.liu@cwo.com.au Newsgroups: comp.unix.osf.osf1 Hi all I am sorry that I did not specify the environment completely: this is a UNIX shell environment. Wallace Liu wrote: > 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