From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2175e42c8841bb13,start X-Google-Attributes: gidfee84,public From: Wallace Liu Subject: No subject was specified. Date: 1999/09/21 Message-ID: <37E705E1.D1303F3A@cwo.com.au>#1/1 X-Deja-AN: 527708540 Content-Transfer-Encoding: 7bit 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 , 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