2 ms·
> Please note that busybox can’t function with a name that is not a busybox applet name. This is somewhat wrong. From ksh/bash/zsh, you can run: (exec -a so
by o11c 2y ago
> Please note that busybox can’t function with a name that is not a busybox applet name.
This is somewhat wrong. From ksh/bash/zsh, you can run:
(exec -a someappname /arbitraryexecutablepath args...)
This won't work on most ash derivatives (including /bin/sh on Debian, FreeBSD, or NetBSD), but does work on busybox ash.
The parentheses prevent the `exec` from actually replacing your current shell, which might be less important for emergency rescues, but which otherwise is often what you want with `exec -a`.