bin/143271: [patch] whatis(1) should print error message to
jschauma at netmeister.org
Sun Aug 1 22:40:06 UTC 2010
The following reply was made to PR bin/143271; it has been noted by GNATS.
From: Jan Schaumann <jschauma at netmeister.org>
To: Alexander Best <arundel at freebsd.org>
Cc: bug-followup at freebsd.org
Subject: Re: bin/143271: [patch] whatis(1) should print error message to
Date: Sun, 1 Aug 2010 18:30:28 -0400
Content-Type: text/plain; charset=us-ascii
Alexander Best <arundel at freebsd.org> wrote:
> 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 $?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-bugs