bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: [PATCH] tests/run-test: do not try to unset UID
Date: Wed, 13 May 2026 09:28:45 -0400
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]