Hacker News new | ask | show | jobs
by quotemstr 503 days 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.
2 comments

If 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.
Send your patches to Linux and BSD kernel mailing lists.
It cannot be fixed now. It would break thing.