bug-bash
[Top][All Lists]
Advanced

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

Bash 2.05 support for ISO C99 length specifiers


From: Paul Eggert
Subject: Bash 2.05 support for ISO C99 length specifiers
Date: Fri, 27 Apr 2001 12:06:38 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.7
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' 
-DCONF_VENDOR='sun' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/opt/reb/include -g -O2
uname output: SunOS shade.twinsun.com 5.8 Generic_108528-07 sun4u sparc 
SUNW,Ultra-1
Machine Type: sparc-sun-solaris2.7

Bash Version: 2.05
Patch Level: 0
Release Status: release

Description:
        POSIX 1003.1-200x Draft 6 requires support for the ISO C99
        printf specifier length modifiers 'j', 't', and 'z'.

Repeat-By:
        $ printf '%zd\n' 0
        bash: printf: `z': invalid format character

        The output should be '0'.

Fix:

This patch assumes the other patches I've sent in recently.

2001-04-27  Paul Eggert  <eggert@twinsun.com>

        * builtins/printf.def (SKIP2): Add ISO C99 length specifiers
        'j', 't', and 'z'.

===================================================================
RCS file: builtins/printf.def,v
retrieving revision 2.5.0.6
retrieving revision 2.5.0.7
diff -pu -r2.5.0.6 -r2.5.0.7
--- builtins/printf.def 2001/04/27 18:56:41     2.5.0.6
+++ builtins/printf.def 2001/04/27 19:02:40     2.5.0.7
@@ -77,7 +77,7 @@ extern int errno;
   do { free (conv); fflush (stdout); return (value); } while (0)
 
 #define  SKIP1 "#'-+ 0"
-#define  SKIP2 "hlL"
+#define  SKIP2 "hjlLtz"
 
 static void printstr __P((char *, char *, int, int, int));
 static int tescape __P((char *, int, char *, int *));



reply via email to

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