svn commit: r192398 - in head/usr.bin: . perror

Stanislav Sedov stas at FreeBSD.org
Thu May 21 09:24:08 UTC 2009


On Wed, 20 May 2009 19:58:20 -0300
"Carlos A. M. dos Santos" <unixmania at gmail.com> mentioned:

> On Wed, May 20, 2009 at 5:01 PM, Peter Jeremy
> <peterjeremy at optushome.com.au> wrote:
> > On 2009-May-19 17:40:22 +0000, "George V. Neville-Neil" <gnn at freebsd.org> wrote:
> >>Log:
> >>  Add a new program, perror, which takes an errno as a command line argument
> >>  and outputs the associated textual message in the same way that
> >>  perror(3) would if called within a program.
> 
> Rename it to "strerror", please.

Why?

> 
> > Given how easy it is to "grep <<errno>> /usr/include/sys/errno.h" or
> >  perl -e '$! = <<errno>>; print "$!\n";'
> > I'm not sure of the utility of this tool.  One downside is that
> >  man perror
> > will now return perror(1) instead of perror(3)
> 
> So does "man printf", which is a pity. It bytes me each time I'm using
> Vim and press "k" over the word. :-(
> 

You should teach vim to run `man 3 printf` instead of `printf`. It is 
a normal sort order that averyone expects.

-- 
Stanislav Sedov
ST4096-RIPE

!DSPAM:4a151db6994291957320619!




More information about the svn-src-all mailing list