BusyBox ash as subshell for mc (midnight commander)?

Tito farmatito at tiscali.it
Wed Feb 29 19:44:40 UTC 2012


On Wednesday 29 February 2012 18:40:04 Alexander Kriegisch wrote:
> I have asked this question years ago on the MC mailing list, but got no
> answer: http://www.mail-archive.com/mc@gnome.org/msg02261.html
> 
> > MC FAQ:
> >> 6.6 When I use Ctrl-O I don't get a subshell.  How do I fix this?
> >> 
> >> Only bash, tcsh and zsh can be used as subshell.  Use one of those
> >> shells as your default shell, and it will be used as subshell in
> >> GNU Midnight Commander.
> > 
> > What is the reason for that? I use BusyBox ash on an embedded
> > platform (DSL/LAN/WLAN router) and would like to have a Ctrl-O
> > subshell. What would be technically required from a candidate shell
> > in order to make it work?
> 
> Can anybody from this list tell me if this is somehow possible? I know
> how to compile and run Bash for my target platform, but I dislike the
> though of using it just for mc subshell support. I do not need it for
> any other purpose. Is there any way to trick so as for it to use BusyBox
> ash (my /bin/sh)?
> --
> Alexander Kriegisch (kriegaex)
> http://freetz.org
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
> 
Hi,
add /usr/local/bin to PATH at the beginning of the PATH variable, copy
busybox to it and rename it to bash. This will work only
if mc scans parses PATH to find one of the supported shells.
Just an idea, untested.

Ciao,
Tito


More information about the busybox mailing list