[Bug 15481] /bin/sh does not work when invoked with argv[0] different from "sh"
bugzilla at busybox.net
bugzilla at busybox.net
Wed Mar 22 20:03:45 UTC 2023
https://bugs.busybox.net/show_bug.cgi?id=15481
--- Comment #1 from Eric Blake <eblake at redhat.com> ---
In parallel, I've opened https://www.austingroupbugs.net/view.php?id=1645;
maybe POSIX will be relaxed to allow libc implementations to fall back to
execl("/bin/sh", "sh", "-c", ". quoted_file", argv[0], argv[1], ..., NULL) or
execl("/bin/sh", "sh", "-c", "exec -a \"$0\" quoted_file \"$@\"", argv[0],
argv[1], ..., NULL), at which point busybox can still depend on argv[0] ending
in "sh" while passing the correct $0 to the shell script. Let's see what the
libc and POSIX folks say...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list