Collin Funk wrote:
> > FAIL: tests/env/env0-from
> > =========================
> >
> > env: environment corrupt; missing value for opaque
> > env: cannot unset 'A': Bad address
> > --- exp-sorted      2026-08-24 19:26:18.994854000 +0000
> > +++ out     2026-08-24 19:26:18.997699000 +0000
> > @@ -0,0 +1,4 @@
> > +B=old
> > +C=operand
> > +D=new
> > +opaque
> > env: cannot unset '': Invalid argument
> > env: cannot unset 'A=B': Invalid argument
> > env: cannot unset '': Invalid argument
> > env: cannot unset 'A=B': Invalid argument
> > FAIL tests/env/env0-from.sh (exit status: 1)
> 
> Thats annoying. FreeBSD getenv, putenv, and friends just give up upon
> seeing an environment variable without a value, instead of continuing
> like everyone else [1].
> [1] 
> https://github.com/freebsd/freebsd-src/blob/9496457f230f933afa78b0a60295d59828bff08c/lib/libc/stdlib/getenv.c#L354-L364

This is justified by POSIX [1], which says
  "These strings have the form name=value"

In the patch: s/it's/its/

Bruno

[1] https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap08.html




Reply via email to