$ 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