BusyBox ash as subshell for mc (midnight commander)?
Laurent Bercot
ska-dietlibc at skarnet.org
Thu Mar 1 11:08:00 UTC 2012
> 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
More information about the busybox
mailing list