On 11/02/2022 18.00, Jan Engelhardt wrote:
On Friday 2022-02-11 13:14, Carlos E. R. wrote:
Wild idea:
Create a shebang that lists more than one shell that can be used to run the (current) script.
Not manageable.
#!pick sh dash bash fish
where does it stop? You cannot reasonably list all interpreters
Only those with which the script in question was tested
So instead of specifying bash, say that it can run with bash, dash, busybox... whichever.
That way no need to "argue" what means /bin/sh ;-)
/bin/sh means "give me a feckin sh-compatible shell whichever, even one that I *don't* know yet"
Apparently it does not exist, and this discussion appears again and again over the years ;-p -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))