Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib 
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -march=i386 -mcpu=i686
uname output: Linux pessard.research.canon.com.au 2.6.6-1.435.2.3 #1 Thu Jul 1 
08:25:29 EDT 2004 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

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

Description:
        Bash's builtin printf performs unwanted option argument interpretation
        on the format string:

        $ /usr/bin/printf "--- All files checked okay. ---\n"
        --- All files checked okay. ---
        $ printf "--- All files checked okay. ---\n"
        -sh: printf: --: invalid option
        printf: usage: printf format [arguments]
        $ type printf
        printf is a shell builtin
        $ bash --version
        GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
        Copyright (C) 2002 Free Software Foundation, Inc.

        The lack of varying command line processing on the printf utility is
        one of its main advantages over the various flavours and variants of
        "echo".


Repeat-By:
        printf "---"

Fix:
        Don't perform "usual" argument processing, always treat the 1st
        argument as a format string.


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to