misc/143271: whatis(1) should print error message to stderr
Jan Schaumann
jschauma at netmeister.org
Tue Jan 26 18:30:08 UTC 2010
>Number: 143271
>Category: misc
>Synopsis: whatis(1) should print error message to stderr
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 26 18:30:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Jan Schaumann
>Release:
>Organization:
>Environment:
>Description:
If you run 'whatis oink', it will print 'oink: nothing appropriate' to stdout. This is an error message and should go to stderr.
>How-To-Repeat:
whatis oink
>Fix:
--- /tmp/whatis 2010-01-26 18:20:15.000000000 +0000
+++ /usr/bin/whatis 2009-07-08 19:28:03.000000000 +0000
@@ -102,7 +102,7 @@
# nothing found, exit
if [ -z "$line" -a ! -z "$line2" ]; then
- printf -- "$line2" >&2
+ printf -- "$line2"
exit $exit_nomatch
else
( printf -- "$line2"; echo "$line"; cat ) | $PAGER
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list