misc/143271: whatis(1) should print error message to stderr

Jan Schaumann jschauma at netmeister.org
Tue Jan 26 18:50:04 UTC 2010


The following reply was made to PR misc/143271; it has been noted by GNATS.

From: Jan Schaumann <jschauma at netmeister.org>
To: bug-followup at 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--


More information about the freebsd-bugs mailing list