Sujet : Re: Default PATH setting - reduce to something more sensible?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 26. Jan 2025, 14:42:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vn5e3o$3q92u$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 26.01.2025 03:07, Keith Thompson wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 24.01.2025 23:00, Keith Thompson wrote:
[...]
>
I mean that a shell should behave consistently. (I think Bash does
not in the given case.)
Consistently with what? Bash consistently expands literal '~'s in
$PATH, and consistently disables that expansion in POSIX mode.
I think I have (already repeatedly) expanded on that, so let me just
enumerate some obvious aspects sparsely...
- expanding tilde once at dedicated places vs. twice
- consistency with other expansions (not done twice), e.g. '$HOME'
- (and if you accept that) consistency with the other shells
(Any single inconsistency is IMO already worthwhile to be critically
discussed.)
Janis
[...]