[busybox]/bin/sh exit status

Nils Carlson nils.carlson at ludd.ltu.se
Mon Jan 25 07:31:46 UTC 2010


Sorry about that, checked the latest version now and things are working
just fine there, yes, this was an old version of busybox with a weird
config.

Sorry for bothering you. :-)

Great stuff by the way, busybox has gotten much better these last few
years.

Cheers,

Nils



On Sun, 24 Jan 2010, Denys Vlasenko wrote:

> On Sunday 24 January 2010 23:05, Nils Carlson wrote:
> > While doing some work with the C system() command we ran into some
> > trouble
> > where busybox wasn't returning the exit status of the spawned process,
> > ie,
> >
> > /bin/sh -c
> >
> > wasn't returning the exit code as from the last command (which it
> > should,
> > according to posix).
>
> Give an exact example of the command you run which demonstrates
> bad behavior. Like:
>
> $ ./busybox sh -c 'foo bar baz'; echo $?
>
> Also, what is bbox version and .config which you use?
>
> > So here is a simple patch that fixes this, tell me what you think,
> > is the change valid, is it desired? It's quite usefull anyway... :-)
>
> The change is invalid. You'd see it if you'd try compiling and
> running it.
>
> --
> vda
>


More information about the busybox mailing list