[Bug 300226] [NEW] Prints error messages to stdout

Johan Walles johan.walles at gmail.com
Thu Nov 20 08:22:49 GMT 2008


Public bug reported:

Binary package hint: bind9-host

I'm on bind9-host version 1:9.4.2.dfsg.P2-2 (hardy).

The "host" command prints error messages to stdout.

They should be printed to stderr.

Printing them to stdout leads to problems like these:
http://bugs.debian.org/375787
http://bugs.debian.org/482375

Repro:
johan at transwarp:/tmp/tjo/bind9-9.4.2.dfsg.P2$ host assasgffgds
Host assasgffgds not found: 3(NXDOMAIN)
johan at transwarp:/tmp/tjo/bind9-9.4.2.dfsg.P2$ host assasgffgds > /dev/null
johan at transwarp:/tmp/tjo/bind9-9.4.2.dfsg.P2$ echo $?
1

Wikipedia entry about stderr says that its purpose is "to provide the best chance of being seen even if standard output is redirected":
http://en.wikipedia.org/wiki/Standard_streams#Standard_error_.28stderr.29

** Affects: bind9 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Prints error messages to stdout
https://bugs.launchpad.net/bugs/300226
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bind9 in ubuntu.



More information about the Ubuntu-server-bugs mailing list