[PATCH] ash: fix command name of shell scripts
mikma.bbne at lists.m7n.se
mikma.bbne at lists.m7n.se
Sun Oct 10 21:01:11 UTC 2021
Hello,
when executing a script with ash from busybox in the shebang then the command name will contain "sh" instead of the name of the script as expected. This means you can't use "ps -C <script name>", which is possible if you use bash in the script.
This patch fixes ash, but there may be more uses of bb_busybox_exec_path that need to be fixed, but I'm not sure which. If there are then this patch probably reintroduces the bug that "exe" is used as the command name.
/Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20211010/6b1eeca3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ash-fix-command-name-of-shell-scripts.patch
Type: text/x-patch
Size: 2836 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20211010/6b1eeca3/attachment.bin>
More information about the busybox
mailing list