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

Never thought of it this way; isn’t it always safe to assume env is in PATH?

Maybe `#! env <shell>` could be considered a DSL for hashbangs. My reasoning is that `/usr/bin/env` is the thing that seems to be hard-coded to a system path, in most cases.



Some environments (like containers) have no, or extremely incomplete PATHs.


I think POSIX requires env but doesn't mandate a location for it.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: