bug-bash
[Top][All Lists]
Advanced

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

printf has weird behaviour when parsing zero padded numbers


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

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


reply via email to

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