[Top][All Lists]

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

bug in printf builtin

From: Oliver Kiddle
Subject: bug in printf builtin
Date: Tue, 30 Oct 2001 13:55:50 +0000

The following commands causes bash 2.05 to seg fault:
        printf "%*s\n" 0 hello
        printf "%.*g\n" 0 .1

Presumably, 0 is used internally to indicate when the width or precision
were specified with numbers instead of `*' and it is now calling
printf(3) without the extra parameter.

The printf in GNU sh-utils has a similar bug with a negative instead of
zero number but I've sent a separate report to them.

Please Cc me in any replies as I don't subscribe to this list.

Oliver Kiddle

This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit

reply via email to

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