From owner-svn-src-head@FreeBSD.ORG Thu May 21 09:24:10 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A3231065670 for ; Thu, 21 May 2009 09:24:10 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id C1AA28FC24 for ; Thu, 21 May 2009 09:24:09 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 680A38FC51 for ; Thu, 21 May 2009 13:24:08 +0400 (MSD) Received: from localhost (dhcp170-227-red.yandex.net [95.108.170.227]) by mx0.deglitch.com (Postfix) with ESMTPSA id 032E28FC18; Thu, 21 May 2009 13:24:04 +0400 (MSD) Date: Thu, 21 May 2009 13:24:04 +0400 From: Stanislav Sedov To: "Carlos A. M. dos Santos" Message-Id: <20090521132404.cc5be268.stas@FreeBSD.org> In-Reply-To: References: <200905191740.n4JHeMMU005087@svn.freebsd.org> <20090520200138.GA33344@server.vk2pj.dyndns.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Thu May 21 13:24:08 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4a151db8994291038712213 Cc: svn-src-head@freebsd.org, Peter Jeremy , svn-src-all@freebsd.org, src-committers@freebsd.org, "George V. Neville-Neil" Subject: Re: svn commit: r192398 - in head/usr.bin: . perror X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 09:24:10 -0000 On Wed, 20 May 2009 19:58:20 -0300 "Carlos A. M. dos Santos" mentioned: > On Wed, May 20, 2009 at 5:01 PM, Peter Jeremy > wrote: > > On 2009-May-19 17:40:22 +0000, "George V. Neville-Neil" 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 <> /usr/include/sys/errno.h" or > > perl -e '$! = <>; 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:4a151db8994291038712213!