bug-bash
[Top][All Lists]
Advanced

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

nonconformant behavior for printf(1) (you cannot interpret - as an optio


From: Rich Felker
Subject: nonconformant behavior for printf(1) (you cannot interpret - as an option char)
Date: Mon, 26 Nov 2007 22:43:08 -0500
User-agent: Mutt/1.4.2.2i

$ printf ---%s---\\n test
bash: printf: --: invalid option
printf: usage: printf [-v var] format [arguments]

expected: ---test---

This seems to be the third bug I've found in bash's internal printf(1)
which breaks conformance to POSIX. Could you either fix this, or else
disable the printf (and possibly other) builtins entirely when bash is
running in POSIX/sh mode? It's a source of breakage for real valid
scripts! Disabling the builtins manually is not an option for sh
scripts since the mechanism to disable them is bash-specific.

Rich




reply via email to

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