Index | Thread | Search

From:
Manuel Giraud <manuel@ledu-giraud.fr>
Subject:
Re: Support for /usr/bin/env -S (kind of)
To:
"Theo de Raadt" <deraadt@openbsd.org>
Cc:
tech@openbsd.org
Date:
Fri, 18 Jul 2025 19:05:45 +0200

Download raw body.

Thread
"Theo de Raadt" <deraadt@openbsd.org> writes:

> If I squint, I see more unsafe ways this will get used in practice,
> than safe ways.
>
> Currently, this cannot be used in any unsafe way because it doesn't
> exist.  It fails.

Fair enough.

[...]

> So how common is this actually, or is it just something someone wished
> and they pushed it into Linux and it actually isn't used?

It's hard for me to say.  FWIW, I've seen this used (rarely) in the
emacs test suite.  This feature was also ported to FreeBSD env.

I think the idea is that it is handy to make script using an interpreter
and passing multiple setup options.
-- 
Manuel Giraud