Re: [PATCH] tests/run-test: do not try to unset UID

Chet Ramey <[email protected]> Wed, 13 May 2026 09:28:45 -0400
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
On 5/12/26 10:30 PM, Grisha Levit wrote:
> tests/run-all uses `sh' to execute tests/run-*. If sh is bash 5.3+,
> running tests/run-test will fail because `unset UID' causes a posix-
> mode non-interactive bash to exit.

Weird. I found and fixed this last week after encountering it on
Fedora 44.

> As a side note, it is kind of surprising that if {E,}UID is present in
> the environment, the value is inherited (and the resulting variable is
> not readonly).

Because people used it, and making it readonly broke their scripts.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/