11 Feb
2022
11 Feb
'22
17:00
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
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"