[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
- nonconformant behavior for printf(1) (you cannot interpret - as an option char),
Rich Felker <=
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Eric Blake, 2007/11/26
- Message not available
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Eric Blake, 2007/11/26
- Message not available
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Eric Blake, 2007/11/27
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Rich Felker, 2007/11/27
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Eric Blake, 2007/11/27
- Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char), Rich Felker, 2007/11/27