Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: Support for /usr/bin/env -S (kind of)
To:
Manuel Giraud <manuel@ledu-giraud.fr>, tech <tech@openbsd.org>
Date:
Tue, 22 Jul 2025 09:05:09 -0600

Download raw body.

Thread
  • Matthias Kilian:

    Support for /usr/bin/env -S (kind of)

  • Stuart Henderson <stu@spacehopper.org> wrote:
    
    > On 2025/07/22 13:12, Manuel Giraud wrote:
    > > Crystal Kolipe <kolipe.c@exoticsilicon.com> writes:
    > > 
    > > > On Mon, Jul 21, 2025 at 11:24:51PM -0400, Garance ELC Drosehn wrote:
    > > >> On 18 Jul 2025, at 14:42, Jeremie Courreges-Anglas wrote:
    > > >> 
    > > >> > On Fri, Jul 18, 2025 at 07:30:09PM +0200, Manuel Giraud wrote:
    > > >> >> Jeremie Courreges-Anglas <jca@wxcvbn.org> writes:
    > > >> > [...]
    > > >> >>
    > > >> >> As another data point, I tried to search for mentions of "env -S" in all
    > > >> >> the patch-* files of ports but couldn't find any.  Do you have examples
    > > >> >> where genv was used?
    > > >> >
    > > >> > Nope, I was not implying there were actual candidates.
    > > >> 
    > > >> FWIW, I noticed that there was some presentation at BSDcan which mentioned
    > > >> 'env -S' in passing, and which said that while they were working on their
    > > >> project, they noticed that OpenBSD (and maybe NetBSD?) did not have that
    > > >> option.
    > > >
    > > > I can confirm that NetBSD does _not_ support env -S.
    > > 
    > > What I gather from this discussion is that it would be "nice to have"
    > > user feature while not being standardized and potentially unsafe.  So
    > > maybe, we should not support this.  Sorry for the noise.
    > 
    > also, we didn't have to patch any instances of this in ports.
    
    
    So nothing needs this now.  They don't even use the genv variation.
    
    Is it actually _used_ in another operating system?  Can someone do the grep?
    
    
  • Matthias Kilian:

    Support for /usr/bin/env -S (kind of)