On 3/9/23 5:42 PM, Moshe Looks wrote:
Thank you this is very illuminating and makes it clear that my naive
one-line fix would be inappropriate. Given the current state of
affairs there is really no good reason for PATH to ever be unset or
set to empty vs. explicitly set to '.', right? So might be worth
spelling out in the docs that this is inadvisable :).

There shouldn't be any difference between PATH=. and PATH=, but why not
use the former and make your intent clear?

Behavior varies with `unset PATH', so it makes sense not to use it. The
Bourne shell didn't even allow PATH to be unset.

Chet

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


Reply via email to