Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: su, doas inconsistent handling of duplicate environment variables
To:
"Theo de Raadt" <deraadt@openbsd.org>
Cc:
jmates@thrig.me, tech@openbsd.org
Date:
Wed, 07 Feb 2024 11:20:50 -0700

Download raw body.

Thread
On Wed, 07 Feb 2024 11:12:03 -0700, "Theo de Raadt" wrote:

> From what I saw in ksh, it isn't that hard to fix it.
> Not sure about others.
>
> But I don't think we'll ever get universal acceptance of one rule,
> unless a truly nasty bit if behaviour turns up due to the confusion.

For what it's worth, bash takes the last match too.  I don't know
if POSIX has anything to say about this.  It seems more like an
implementation detail that is not covered by the standard.

 - todd