svn commit: r212374 - head/usr.bin/printf

Juli Mallett jmallett at
Thu Sep 16 20:10:54 UTC 2010

On Thu, Sep 16, 2010 at 04:36, Bruce Evans <brde at> wrote:
> WHat about the lesser burder on a character or two for putting -- in the
> synopsis where it is more visible:
>        printf [--] format [arguments ...]

Right, that's what I've been thinking about.  For that matter, does
printf(1) need to use getopt(3) at all?  It seems like simply checking
for "--" could be sufficient.  Does POSIX require that it exit with an
error if it's given any options?  At the very least, it seems like it
would be more productive to have printf(1) give unusually-helpful
error messages (perhaps merely changing its usage output to match that
synopsis) if it encounters a string beginning with '-' other than

More information about the svn-src-head mailing list