Deutsch English Français Italiano |
<vn5e3o$3q92u$1@dont-email.me> 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: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell Subject: Re: Default PATH setting - reduce to something more sensible? Date: Sun, 26 Jan 2025 14:42:15 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <vn5e3o$3q92u$1@dont-email.me> References: <vm5dei$2c7to$1@dont-email.me> <vmthmu$3bb88$1@news.xmission.com> <vmtrqk$92b$1@reader2.panix.com> <vmu94j$1q2lp$1@dont-email.me> <vn05ji$r20$1@reader2.panix.com> <vn0bpf$29qe6$1@dont-email.me> <871pwr6fe9.fsf@nosuchdomain.example.com> <vn2ier$2phv1$1@dont-email.me> <87ed0qba54.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 26 Jan 2025 14:42:17 +0100 (CET) Injection-Info: dont-email.me; posting-host="11a19508db69cbd8c79d09247d3cf2de"; logging-data="4007006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tuGxDFGzqL5KiUfMRP47K" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:SWHu09KfGYM9JMpXDS1ogJ9r3II= X-Enigmail-Draft-Status: N1110 In-Reply-To: <87ed0qba54.fsf@nosuchdomain.example.com> Bytes: 2204 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 > [...]