bug-bash
[Top][All Lists]
Advanced

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

Re: printf has weird behaviour when parsing zero padded numbers


From: bitozoid
Subject: Re: printf has weird behaviour when parsing zero padded numbers
Date: Fri, 19 Jun 2009 11:05:27 -0700 (PDT)
User-agent: G2/1.0

On Jun 19, 6:58 pm, bitozoid <otroedua...@gmail.com> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: i686-pc-linux-gnu-gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -
> DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -
> DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -
> DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -march=core2 -
> O2 -fomit-frame-pointer -pipe
> uname output: Linux ceo 2.6.29-gentoo-edu34 #1 SMP Sat Apr 4 19:16:43
> WEST 2009 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/
> Linux
> Machine Type: i686-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
>
> Description:
>         weird behaviour of printf
>
> Repeat-By:
>         eduardo@ceo ~ $ printf "%02d\n" 00005
>         05
>         eduardo@ceo ~ $ printf "%02d\n" 00008
>         -bash: printf: 00008: invalid number
>         00
> Fix:
>         I don't know

Sorry, not a bug, but octal representation. Really sorry.


reply via email to

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