From: Matthias Kilian Subject: Re: Support for /usr/bin/env -S (kind of) To: Omar Polo Cc: tech@openbsd.org Date: Sat, 19 Jul 2025 20:46:08 +0200 Hi, On Sat, Jul 19, 2025 at 08:32:13AM +0200, Omar Polo wrote: > Matthias Kilian wrote: > > On Fri, Jul 18, 2025 at 06:23:45PM +0200, Manuel Giraud wrote: > > > For example, one could make the following silly script: > > > > > > #!/usr/bin/env -S cat -b -e > > > > In addition to what other people already said, that #!/usr/bin/env > > thing in general is an absolute antipattern IMHO. > > no opinion on -S, but i'm curious about this, why do you think it's an > antipattern? Because the behaviour of the script then depends on the user's PATH. You can do this for yourself (i.e. in something like ~/bin), but if you install a script using #!/usr/bin/env system-wide (like /usr/local/bin), other users who run your script may see something different than you. Ciao, Kili