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

2010-09-17 Thread Bruce Evans
On Thu, 16 Sep 2010, David O'Brien wrote: ... Interestingly, we may not be compliant with susv3 if I am reading this correctly: The printf utility is required to notify the user when conversion errors are detected while producing numeric output; thus, the following results would be exp

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

2010-09-16 Thread David O'Brien
On Thu, Sep 16, 2010 at 09:36:43PM +1000, Bruce Evans wrote: > On Thu, 16 Sep 2010, David O'Brien wrote: >> Is a sentence or two a burden to the man page vs. saving someone the time >> I spent trying to figure out why printf(1) kept throwing up errors? > > WHat about the lesser burder on a charact

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

2010-09-16 Thread David O'Brien
On Thu, Sep 09, 2010 at 09:53:02PM +0200, Jilles Tjoelker wrote: > On Thu, Sep 09, 2010 at 07:27:40PM +, David E. O'Brien wrote: > > +.Pp > > +Trying to print a dash ("-") as the first character causes > > +.Nm > > +to interpet the dash as a program argument. > > +.Nm -- > > +must be used befor

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

2010-09-16 Thread Jilles Tjoelker
On Thu, Sep 16, 2010 at 01:10:33PM -0700, Juli Mallett wrote: > On Thu, Sep 16, 2010 at 04:36, Bruce Evans 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

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

2010-09-16 Thread M. Warner Losh
In message: Juli Mallett writes: : On Thu, Sep 16, 2010 at 04:36, Bruce Evans 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

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

2010-09-16 Thread Juli Mallett
On Thu, Sep 16, 2010 at 04:36, Bruce Evans 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

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

2010-09-16 Thread Bruce Evans
On Thu, 16 Sep 2010, David O'Brien wrote: On Thu, Sep 09, 2010 at 12:51:11PM -0700, Juli Mallett wrote: On Thu, Sep 9, 2010 at 12:27, David E. O'Brien wrote: Author: obrien Date: Thu Sep ?9 19:27:40 2010 New Revision: 212374 URL: http://svn.freebsd.org/changeset/base/212374 Log: ?Note bug in

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

2010-09-16 Thread David O'Brien
On Thu, Sep 09, 2010 at 12:51:11PM -0700, Juli Mallett wrote: > On Thu, Sep 9, 2010 at 12:27, David E. O'Brien wrote: > > Author: obrien > > Date: Thu Sep ?9 19:27:40 2010 > > New Revision: 212374 > > URL: http://svn.freebsd.org/changeset/base/212374 > > > > Log: > > ?Note bug in trying to printf(

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

2010-09-09 Thread Jilles Tjoelker
On Thu, Sep 09, 2010 at 07:27:40PM +, David E. O'Brien wrote: > Author: obrien > Date: Thu Sep 9 19:27:40 2010 > New Revision: 212374 > URL: http://svn.freebsd.org/changeset/base/212374 > Log: > Note bug in trying to printf(1) things like: '-%s\n' "foo" > Modified: > head/usr.bin/printf/

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

2010-09-09 Thread Juli Mallett
On Thu, Sep 9, 2010 at 12:27, David E. O'Brien wrote: > Author: obrien > Date: Thu Sep  9 19:27:40 2010 > New Revision: 212374 > URL: http://svn.freebsd.org/changeset/base/212374 > > Log: >  Note bug in trying to printf(1) things like: '-%s\n' "foo" Should we also add something like this note to

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

2010-09-09 Thread David E. O'Brien
Author: obrien Date: Thu Sep 9 19:27:40 2010 New Revision: 212374 URL: http://svn.freebsd.org/changeset/base/212374 Log: Note bug in trying to printf(1) things like: '-%s\n' "foo" Modified: head/usr.bin/printf/printf.1 Modified: head/usr.bin/printf/printf.1 =