[BusyBox] BB_FEATURE_SH_STANDALONE_SHELL and ash builtins versus applets

Scott Murray scottm at somanetworks.com
Mon Apr 28 23:55:37 UTC 2003


Hi,

After recently upgrading from 0.60.3 to 0.60.5, we've noticed that if
BB_FEATURE_SH_STANDALONE_SHELL is enabled (as it is in our config), 
applets now win over builtins in ash.  The original problem a colleague
noticed here was that "kill -0" (no args) had started silently returning
a status of 0, compared to printing usage and exiting with a status of
2 in 0.60.3.  After I realized what was happening, I experimented a bit,
and discovered that a further consequence of this behaviour is that job
control is somewhat broken, as "kill %n" does not work with the kill 
applet.

Anyways, after some wild goose-chasing on my part, it looks like some code 
(conditional on BB_FEATURE_SH_STANDALONE_SHELL) was added to find_command 
in ash.c in 0.60.4 that causes this.  Before I start hacking, could one 
of the ash experts comment on what their preferred fix would be?

Thanks,

Scott


-- 
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm at somanetworks.com




More information about the busybox mailing list