bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printf command refuses formatting string "08" using %02d


From: Alexandre Campo
Subject: printf command refuses formatting string "08" using %02d
Date: Thu, 15 Nov 2007 03:32:46 +0100

        
Hi, I am using Ubuntu 7.10 for amd64, kernel 2.6.22-14-generic, 
Printf refuses to tell me the version number... --help and --version flags not 
working ???

Anyway, here is my problem (bash  3.2.25(1)-release (x86_64-pc-linux-gnu)): 

address@hidden:~/$ echo `printf "%02d" 08` 
bash: printf: 08: invalid number
00
address@hidden:~/$ echo `printf "%02d" 04` 
04
address@hidden:~/$ 


printf refuses to format 08 ... and not 04. Took a look at the code, but 
problem was not obvious.
Gdb would be useful I guess.

Please let me know if you can reproduce this problem, if you need more 
information, and if you have a solution :-)
Thanks for your attention.
Alexandre Campo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]