From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 1 22:40:06 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 97EF4106564A for ; Sun, 1 Aug 2010 22:40:06 +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 6CD9B8FC12 for ; Sun, 1 Aug 2010 22:40:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o71Me64V073210 for ; Sun, 1 Aug 2010 22:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o71Me64b073209; Sun, 1 Aug 2010 22:40:06 GMT (envelope-from gnats) Date: Sun, 1 Aug 2010 22:40:06 GMT Message-Id: <201008012240.o71Me64b073209@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jan Schaumann Cc: Subject: Re: bin/143271: [patch] 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: Sun, 01 Aug 2010 22:40:06 -0000 The following reply was made to PR bin/143271; it has been noted by GNATS. From: Jan Schaumann To: Alexander Best Cc: bug-followup@freebsd.org Subject: Re: bin/143271: [patch] whatis(1) should print error message to stderr Date: Sun, 1 Aug 2010 18:30:28 -0400 --6v9BRtpmy+umdQlo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alexander Best wrote: =20 > however i don't see why whatis'es return values should be altered. > it's common practice to return 0 on success. so returning 0 if whatis > recognizes the keyword is just fine. The problem is that whatis(1) returns 0 even if it does NOT find anything, which should be an error condition. $ whatis oink oink: nothing appropriate $ echo $? 0 $=20 -Jan --6v9BRtpmy+umdQlo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (NetBSD) iD8DBQFMVfWEfFtkr68iakwRAgevAJ9afa0p/R2OZrPli98fUhtCyY771gCeL437 K2ujeDIlfMO6VOpUvN85N9s= =4bQX -----END PGP SIGNATURE----- --6v9BRtpmy+umdQlo--