[email protected] wrote:
> > Also, I'm not sure how you tested this, because it doesn't work like
> > you say it does. setenv { HERE=there } copies both $HERE and $there
> > from the current environment. It does not set HERE=there. That's very
> > wrong.
> >
>
> How are you getting that result? Here is what I am getting:
>
> $ export HERE=hello
> $ export there=world
> $ echo $HERE $there
> hello world
> $ doas ~/test.sh
> HERE is there
> there is
Did I get it backwards? If you have setenv { HERE= there }, your diff
changes behavior.