Alexandre Campo wrote:
> Anyway, here is my problem (bash  3.2.25(1)-release (x86_64-pc-linux-gnu)): 
> 
> [EMAIL PROTECTED]:~/$ echo `printf "%02d" 08` 
> bash: printf: 08: invalid number
> 00
> [EMAIL PROTECTED]:~/$ echo `printf "%02d" 04` 
> 04
> [EMAIL PROTECTED]:~/$ 
> 
> 
> 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
> 

This is not a bug, because strings beginning with '0' are considered octal 
numbers,
but 08 is not a valid octal number.

Li Zefan



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to