Sujet : Re: Default PATH setting - reduce to something more sensible?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shellDate : 24. Jan 2025, 08:06:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmve5h$243si$5@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.161 (Chasiv Yar; )
On Thu, 23 Jan 2025 21:24:47 -0800, Keith Thompson wrote:
it cannot reasonably be anything other than replacement by $HOME,
which is the actual behavior that can be inferred from experiments.
According to my experiments, a “~” in a $PATH component not immediately
followed by a username is expanded, not to $HOME, but to the home
directory associated with the current user ID.