'su --help' exits with error code 2

Bug #914499 reported by Daniel U. Thibault
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Version: 1:4.1.4.2-1ubuntu3.2

Linux applications that have a "help" or "usage" option almost universally print the requested help to stdout and return with an exit code of zero. There was, after all, no error since the user explicitly requested this output.

'su --help', for no apparent reason, prints its help to stderr and exits with code 2. As long as there is a non-zero exit code, output to stderr is correct, but it I am convinced the exit code should be zero and the output should go to stdout.

Oddly, although the 'man su' pages do not list -h or --help among the available options, 'su --help' does (it also does not complain of an invalid option).

I'm reporting this here because the su maintainers are listed as "Ubuntu Developers <email address hidden>".

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/914499/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Phillip Susi (psusi)
affects: ubuntu → shadow (Ubuntu)
Changed in shadow (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.