# CONFIG_BUSYBOX is not set: breakage on master

Jody Bruchon jody at jodybruchon.com
Sat Aug 27 12:27:09 UTC 2016


On 2016-08-27 08:18, Tito wrote:
> >>     $ ./busybox
> >>     busybox: applet not found
>
> The help text and applet list should not be shown and no error thrown
> as this is the expected behavior so it should be:
>
> >>     $ ./busybox
> >>     $ echo $?
> >>     0
This makes sense; return 0 if the busybox binary is called without an 
applet as the next argument.
> In this other 2 cases the error messages are completely
> broken and non-sense as they misrepresent the long name option
> which is not correctly parsed as the applet name
>
> >>     $ ./busybox --help
> >>     -help: applet not found
> >>
> >>     $ ./busybox --list
> >>     -list: applet not found
I know why this happens but it probably shouldn't happen. It's reading 
the first '-' specially.
> The expected behavior should be something like this
>
> >>     $ ./busybox --list
> >>     --list: unknown option
> >>     $ echo $?
> >>     1
Probably so.

I propose renaming the option to CONFIG_BUSYBOX_APPLET instead of 
CONFIG_BUSYBOX, making sure it's on by default (I think it already is), 
and modifying the config help text to warn the user of the consequences. 
Most people should probably not turn this off in the first place.


More information about the busybox mailing list