Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2010 18:50:04 GMT
From:      Jan Schaumann <jschauma@netmeister.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/143271: whatis(1) should print error message to stderr
Message-ID:  <201001261850.o0QIo4U2036636@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/143271; it has been noted by GNATS.

From: Jan Schaumann <jschauma@netmeister.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: misc/143271: whatis(1) should print error message to stderr
Date: Tue, 26 Jan 2010 13:40:07 -0500

 --BXVAT5kNtrzKuDFl
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Additionally, whatis(1) returns 0 if nothing appropriate was found.  It
 should return 1.  Apparently that would confuse 'man -k', so one way to
 do this would be:
 
 # man -k complains if exit_nomatch=1 and no keyword matched
 if expr "${0}" : ".*whatis" >/dev/null 2>&1 ; then
         exit_nomatch=1
 else
         exit_nomatch=0
 fi
 exit_error=2
 
 
 
 --BXVAT5kNtrzKuDFl
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)
 
 iD8DBQFLXzcHfFtkr68iakwRAorHAJ0Zxlyr0Sl6nG3Osh5X6Yy+Cm5CsACfV2Du
 biRzb+acUfuw0PFbGkCYbQw=
 =TjD6
 -----END PGP SIGNATURE-----
 
 --BXVAT5kNtrzKuDFl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001261850.o0QIo4U2036636>