bug-coreutils
[Top][All Lists]
Advanced

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

Re: [CRM114spam]: bug in printf bash command


From: Dr. David Alan Gilbert
Subject: Re: [CRM114spam]: bug in printf bash command
Date: Mon, 9 Jul 2007 18:22:41 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* J?rgen Niinre (address@hidden) wrote:
>  Hello coreutils maintainer,
> 
> The bug is with the command printf:
> 
> address@hidden "%02i" 09
> -bash: printf: 09: invalid number
> address@hidden

Not-a-bug

Numbers starting with a '0' are interpreted as Octal like in C; e.g.

printf "%02i" 011

gets you 09.

Dave
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    | Running GNU/Linux on Alpha,68K| Happy  \ 
\ gro.gilbert @ treblig.org | MIPS,x86,ARM,SPARC,PPC & HPPA | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/




reply via email to

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