Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2010 13:10:33 -0700
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, David O'Brien <obrien@freebsd.org>
Subject:   Re: svn commit: r212374 - head/usr.bin/printf
Message-ID:  <AANLkTimJfeXdP_9caoqBg3WPxpbgLRutDzBw%2BXM6veo5@mail.gmail.com>
In-Reply-To: <20100916212043.N724@delplex.bde.org>
References:  <201009091927.o89JReXm022426@svn.freebsd.org> <AANLkTi=1KXtmwVobbnk8vCkQKDN01RxWh8Q5ZZqzU0tq@mail.gmail.com> <20100916084442.GB21622@dragon.NUXI.org> <20100916212043.N724@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 16, 2010 at 04:36, Bruce Evans <brde@optusnet.com.au> wrote:
> WHat about the lesser burder on a character or two for putting -- in the
> synopsis where it is more visible:
>
> =A0 =A0 =A0 =A0printf [--] 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
"--".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimJfeXdP_9caoqBg3WPxpbgLRutDzBw%2BXM6veo5>