Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #17220 command `pear help` outputs to stderr instead of stdout
Submitted: 2010-03-13 00:32 UTC
From: mekoka Assigned: dufuz
Status: Closed Package: PEAR (version 1.9.0)
PHP Version: 5.2.10 OS: Ubuntu Linux 9.10 (Karmic)
Roadmaps: (Not assigned)    
Subscription  


 [2010-03-13 00:32 UTC] mekoka (Michael Ekoka)
Description: ------------ In a bash shell, the commands `pear help` and `pecl help` currently output to stderr rather than stdout. Test script: --------------- #!/bin/bash pear help > ~/pearhelp pear help 1> ~/pearhelp1 # pearhelp and pearhelp1 files will be empty. pear help 2> ~/pearhelp2 # pearhelp2 now contains the output Expected result: ---------------- the commands should output to stdout

Comments

 [2010-03-25 06:16 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Is there any specific reason why pear should not use stderr for the help? If you look at various other projects, such as apache (apachectl help) then they use stderr for their help menu. The change in it self is trivial but I wanted to see if you had any other reasons beyond wanting to have it all doing the same. As a sidenote, oear does not specifically pick stdout but rather echos out the text in question. IIRC systems can configure what is the default, e.g. stderr could be the default but I might be wrong about that.
 [2010-03-25 06:23 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Is there any specific reason why pear should not use stderr for the help? If you look at various other projects, such as apache (apachectl help) then they use stderr for their help menu. The change in it self is trivial but I wanted to see if you had any other reasons beyond wanting to have it all doing the same. As a sidenote, oear does not specifically pick stdout but rather echos out the text in question. IIRC systems can configure what is the default, e.g. stderr could be the default but I might be wrong about that.
 [2010-03-27 20:08 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.