News for hackers. Stuff that matters.
Re:A surprise with how ' ' handles its program argument in p... by b33j0r on Thursday November 20, 2025 @10:40AM (#45993771)
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.

Re:A surprise with how ' ' handles its program argument in p... by hrimfaxi on Thursday November 20, 2025 @11:37AM (#45994528)
I think POSIX requires env but doesn't mandate a location for it.
Re:A surprise with how ' ' handles its program argument in p... by lazide on Thursday November 20, 2025 @02:35PM (#45996690)
Some environments (like containers) have no, or extremely incomplete PATHs.