Deutsch English Français Italiano |
<87ikq2bbf4.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!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: Sat, 25 Jan 2025 17:39:59 -0800 Organization: None to speak of Lines: 27 Message-ID: <87ikq2bbf4.fsf@nosuchdomain.example.com> References: <vm5dei$2c7to$1@dont-email.me> <vn0bpf$29qe6$1@dont-email.me> <vn110t$faa$1@reader2.panix.com> <vn2hsj$2pe96$1@dont-email.me> <vn30ca$cis$1@reader2.panix.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 26 Jan 2025 02:40:00 +0100 (CET) Injection-Info: dont-email.me; posting-host="fe08763d6b1c9b85d57c56913c7d5466"; logging-data="3390554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XV5QYnycDKNQa09j/0BQX" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:JAiZ3fCXyJrM0UpFgQ4fvCgX8y4= sha1:DchPJYITug4npkfWqpsnX3L6+Go= Bytes: 2277 cross@spitfire.i.gajendra.net (Dan Cross) writes: > In article <vn2hsj$2pe96$1@dont-email.me>, > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >>> [snip] > > Most of this discussion seems to be talking at cross-purposes. > I don't see much point in responding to the specifics. > > My point was simply to show that shell behavior varies with > respect to how $PATH is treated; caveat emptor. > > I don't usually use bash, but if you do and you really don't > like this behavior you can turn it off. As far as I can tell, you can only turn off the behavior by running in POSIX mode, which disables a lot of other Bash-specific functionality. Personally, I'm unwilling to do that. I think I'd like to see a "set -o" setting that disables just this feature. You can *avoid* it by being careful not to put literal '~' characters in $PATH (specifically at the beginning of any element of $PATH). That's what I do (unintentionally before now, deliberately now that I know about it.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */