Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail From: Christian Weisgerber Newsgroups: comp.unix.shell Subject: Re: Default PATH setting - reduce to something more sensible? Date: Sun, 26 Jan 2025 19:01:53 -0000 (UTC) Message-ID: References: <87msfebbkf.fsf@nosuchdomain.example.com> Injection-Date: Sun, 26 Jan 2025 19:01:53 -0000 (UTC) Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1"; logging-data="80186"; mail-complaints-to="usenet@mips.inka.de" User-Agent: slrn/1.0.3 (FreeBSD) Bytes: 1536 Lines: 12 On 2025-01-26, Janis Papanagnou wrote: > you don't want to miss. - So Bash users, if they don't want to get > bitten in a subtle way, are probably advised to be pointed out to > that behavior, or, as suggested by others already, not to use tilde > at all with PATH in Bash. That's a bizarre recommendation. Approximately all uses of tilde in PATH are variants of PATH=~/bin:$PATH, which are expanded on assignment in bash as in other sh-type shells. -- Christian "naddy" Weisgerber naddy@mips.inka.de