From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 26 18:50:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F50E1065670 for ; Tue, 26 Jan 2010 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E0948FC16 for ; Tue, 26 Jan 2010 18:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0QIo4I5036637 for ; Tue, 26 Jan 2010 18:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0QIo4U2036636; Tue, 26 Jan 2010 18:50:04 GMT (envelope-from gnats) Date: Tue, 26 Jan 2010 18:50:04 GMT Message-Id: <201001261850.o0QIo4U2036636@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jan Schaumann Cc: Subject: Re: misc/143271: whatis(1) should print error message to stderr X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jan Schaumann List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2010 18:50:04 -0000 The following reply was made to PR misc/143271; it has been noted by GNATS. From: Jan Schaumann 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--