[Bug: Busybox 1.22.1] false return 0 instead of 1 with '--help' switch.

Laurent Bercot ska-dietlibc at skarnet.org
Sat Aug 30 11:02:50 UTC 2014


> The question is would it break something if --help would return EXIT_FAILURE
> everytime ?

  Well the usual GNU --help behaviour is to return EXIT_SUCCESS after
displaying the help.
  false is the exception, not the rule, and should be specialcased in busybox
as it is in GNU coreutils.

  My opinion is that busybox should drop --help entirely for trivial applets
(i.e. most of them), but some people insist on compatibility with GNU tools.

-- 
  Laurent



More information about the busybox mailing list