Sujet : Re: Default PATH setting - reduce to something more sensible?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.unix.shellDate : 24. Jan 2025, 08:37:27
Autres entêtes
Organisation : None to speak of
Message-ID : <87ed0s64so.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Gnus/5.13 (Gnus v5.13)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
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.
I didn't write the quoted text; Kaz did.
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.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */