On Tue, Apr 30, 2013 at 2:52 PM, Harald Becker <[email protected]> wrote: > Avery wrote: >>Maybe you just want to background the whole chunk of logic using an sh >>block? >> >>( >> dhcpc -b ... >> ...if it failed to get an address from dhcp, do something else... >>) & > > You are right, but using braces instead of parenthesis may avoid an > extra fork (saves some time/resources). > > { > ... your logic goes here > } &
The & sign implies the need for a fork anyway. As far as I know, all modern shells are smart enough to avoid double-forking in this case. :) Have fun, Avery _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
