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

dietmar.schindler at manroland-web.com dietmar.schindler at manroland-web.com
Mon Sep 1 08:20:51 UTC 2014


> Von: Laurent Bercot
> Gesendet: Samstag, 30. August 2014 11:38
>
>   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.

That does not follow. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html#tag_17_04 talks in the OPTIONS section about "arbitrary options that the implementation may provide as an extension" (as --help is) and that "utility options [...] modify the actions of the utility". (Also, it says: «When this section is listed as "None.", it means that the implementation need not support any options.» That doesn't mean "may not".)
The EXIT STATUS section also talks about "implementations with extensions", thus it seems evident to me that extensions may modify the exit status as part of their actions.
--
Regards,
Dietmar Schindler
________________________________
manroland web systems GmbH -- Managing Director: Joern Gossé
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail !
________________________________


More information about the busybox mailing list