5 ms·
env -S should never have been necessary. The strange whitespace splitting rules of the shebang line is an old bug that has matured into an unfixable wart marrin
by quotemstr 2y ago
env -S should never have been necessary. The strange whitespace splitting rules of the shebang line is an old bug that has matured into an unfixable wart marring the face of Unix forever. Every time I have to use tricks like the above, I'm reminded that half an hour of work in the 1980s would have saved years of annoyance later. Shebang lines should have always split like /bin/sh.
- oneshtein 2y agoSend your patches to Linux and BSD kernel mailing lists.
- quotemstr 2y agoIt cannot be fixed now. It would break thing.
- Ferret7446 2y agoIf you need more than what shebang allows, you're probably better off writing a regular shell script and doing whatever you need in shell IMO.