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

Bastian Bittorf bittorf at bluebottle.com
Mon Sep 1 12:42:27 UTC 2014


* Harald Becker <ralda at gmx.de> [01.09.2014 14:38]:
> This shows me, your false is not same as Busybox internal false. You
> are probably using a different false executable, script or alias.
> 
> Try "which false" and "ls -al WHAT_YOU_GET_FROM_WHICH".

seems to be this busybox one 8-):

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

root at luxusAsus:~ ls -la /bin/busybox
-rwxr-xr-x    1 root     root        419951 Aug 29 16:02 /bin/busybox

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

bye, bastian


More information about the busybox mailing list