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

Harald Becker ralda at gmx.de
Mon Sep 1 12:51:44 UTC 2014


 > seems to be this busybox one 8-):

How can that be?

> root at luxusAsus:~ which false
> /bin/false
>
> root at luxusAsus:~ which busybox
> /bin/busybox
>
> root at luxusAsus:~ ls -la /bin/false
> lrwxrwxrwx    1 root     root             7 Aug 29 16:06 /bin/false -> busybox

Ok!

> root at luxusAsus:~ false --help
> root at luxusAsus:~ echo $?
> 1

> root at luxusAsus:~ /bin/busybox false --help
> BusyBox v1.22.1 (2014-08-29 10:01:39 EDT) multi-call binary.
>
> Usage: false
>
> Return an exit code of FALSE (1)
>
> root at luxusAsus:~ echo $?
> 0

How can that be, if both false are Busybox?

Please try:

/bin/false --help; echo $?

Also you may have a look at your aliases?

--
Harald



More information about the busybox mailing list