<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> My only guess is that POSIX wanted to allow for (POSIX) shells that sniff the '#!' line and exec something else for you, since POSIX doesn't require execl() to honor '#!' (although it can). POSIX requires execl() to pass things that are not 'valid executable objects' to the POSIX sh, although I'm sure POSIX also allows a '#!' shell script to be a valid executable object (since that was and is traditional Unix behavior for some Unixes).</p>