Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: