| Deutsch English Français Italiano |
|
<20250114095609.372@kylheku.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: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.unix.programmer Subject: Re: Default PATH setting - reduce to something more sensible? Date: Tue, 14 Jan 2025 17:59:05 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: <20250114095609.372@kylheku.com> References: <vm5dei$2c7to$1@dont-email.me> <87ikqh5n9u.fsf@doppelsaurus.mobileactivedefense.com> <53xhP.976$GtJ8.93@fx48.iad> Injection-Date: Tue, 14 Jan 2025 18:59:07 +0100 (CET) Injection-Info: dont-email.me; posting-host="b479673028688f2f6c51e4e9dcb655c6"; logging-data="2651783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ChHPszKcLTfRxuvPRQa4q258eYHymRoc=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:HM7tzcK2DWGAH5qsSB9kC53X37E= Bytes: 2141 On 2025-01-14, Scott Lurndal <scott@slp53.sl.home> wrote: > Rainer Weikusat <rweikusat@talktalk.net> writes: >>As far as I could determine, some sort of path searching has existed >>since the 6th edition of UNIX (., /bin and /usr/bin hardcoded in the >>shell) and in its present form, it has existed since the 7th edition of >>UNIX. Which means PATH searching was used on PDP-11 16-bit minicomputers >>in the 1970s. It didn't cause performance problems back >>then and will thus certainly don't cause any today. > > There are cases where it _does_ cause performance degradation, if one or > more of the PATH elements refer to NFS filesystems, for example. If it doesn't hurt, that "hash -r" stuff in Bash and probably other shells has to be just developer gold plating. :) I suspect that machines becoming faster *and* process creation becoming more complex and heavier (e.g. attaching multiple shared libraries and resolving symbols) has allowed us to get away with longer PATHs without noticing. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca