[Bug 914499] Re: 'su --help' exits with error code 2
Serge Hallyn
914499 at bugs.launchpad.net
Wed May 20 02:11:48 UTC 2020
** Changed in: shadow (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/914499
Title:
'su --help' exits with error code 2
Status in shadow package in Ubuntu:
Fix Released
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 <ubuntu-devel-discuss at lists.ubuntu.com>".
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/914499/+subscriptions
More information about the foundations-bugs
mailing list