Deutsch   English   Français   Italiano  
<87ed0s64so.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.unix.shell
Subject: Re: Default PATH setting - reduce to something more sensible?
Date: Thu, 23 Jan 2025 23:37:27 -0800
Organization: None to speak of
Lines: 14
Message-ID: <87ed0s64so.fsf@nosuchdomain.example.com>
References: <vm5dei$2c7to$1@dont-email.me>
	<1a876l-53v.ln1@ID-313840.user.individual.net>
	<20250122120930.74@kylheku.com>
	<ccr96l-eot.ln1@ID-313840.user.individual.net>
	<vmthmu$3bb88$1@news.xmission.com> <20250123134647.436@kylheku.com>
	<87v7u5m9m5.fsf@nosuchdomain.example.com>
	<87y0z1595p.fsf@nosuchdomain.example.com>
	<20250123171808.91@kylheku.com>
	<87ldv06axs.fsf@nosuchdomain.example.com>
	<vmve5h$243si$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Jan 2025 08:37:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ce3eaee7b38cea081e4acffc0808b70e";
	logging-data="2226417"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18eIOpheRHXc5T2mdCniFk1"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:3CcuaygOpSIgxH8TX7slr7EeNXo=
	sha1:B/d9I9fUjGWSF2+LSSVla0j+17Q=
Bytes: 2023

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.com
void Void(void) { Void(); } /* The recursive call of the void */