The following reply was made to PR bin/143271; it has been noted by GNATS. From: Jan Schaumann <jscha...@netmeister.org> To: Alexander Best <arun...@freebsd.org> Cc: bug-follo...@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 <arun...@freebsd.org> 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-- _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"