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

Laurent Bercot ska-dietlibc at skarnet.org
Sat Aug 30 09:38:26 UTC 2014


On 30/08/2014 10:33, walter harms wrote:
> Does POSIX specify anyhing about that "--help" ?

  POSIX does not specify anything about --help. It's a GNU extension,
like every long option.

  For true or false, POSIX does not specify any option at all:
  http://pubs.opengroup.org/onlinepubs/9699919799/utilities/false.html

  False is supposed to return a non-zero exit code. Nothing else is
specified. So it applies when arguments are given to false too, no
matter what those arguments are; and busybox's behaviour is non-compliant.

-- 
  Laurent



More information about the busybox mailing list