> In addition this shell script for /bin/bash worked successfully (but
> performance lose on each invocation):
> 
> #!/bin/sh
> exec /bin/busybox ash "$@"

<plug mode="shameless">
 This is exactly the kind of situation where execline is most useful. For
such easy wrappers, you don't need the full power of a shell, you just
need to rewrite the argv. The following script does the job, with a
totally negligible performance loss, unless you can't afford a single
execve():

#!/command/execlineb -S0
/bin/busybox ash $@

 (no, no need for "exec".)
 Check it out at http://www.skarnet.org/software/execline/ and stop
worrying about the costs of scripting, forever. :P
</plug>

-- 
 Laurent
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to