Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2010 18:21:05 GMT
From:      Jan Schaumann <jschauma@netmeister.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/143271: whatis(1) should print error message to stderr
Message-ID:  <201001261821.o0QIL57r056537@www.freebsd.org>
Resent-Message-ID: <201001261830.o0QIU776019300@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001261821.o0QIL57r056537>