Re: 'printf' is not SuSv3 compliant (and maybe not POSIX...?)

[email protected] (Bob Proulx) Thu, 12 Sep 2002 22:30:23 -0600
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
DervishD <[email protected]> [2002-08-19 20:37:55 +0200]:
>     The 'printf' command (no matter the POSIXLY_CORRECT var), chokes
> on the following:
> 
>     > printf -- "Hi there\n"
>     --printf: warning: excess arguments have been ignored
> 
>     The correct behaviour, according to Single UNIX Specification
> version 3 (don't know the POSIX behaviour), is that 'printf' shall
> recognize '--' as a first argument to be discarded. That is, if I
> want to print '--help', I shouldn't need to set POSIXLY_CORRECT, but
> just do 'printf -- --help'.

Thanks for the report.  I logged this as a bug against GNU coreutils
and it is now in the database.

Bob