Hacker News new | ask | show | jobs
by b33j0r 203 days ago
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.

2 comments

Some environments (like containers) have no, or extremely incomplete PATHs.
I think POSIX requires env but doesn't mandate a location for it.