From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from munnari.oz.au ([128.250.1.21]) by archone.tamu.edu with SMTP id <45330>; Sun, 9 Feb 1992 20:35:34 -0600 Received: from cerberus.bhpese.oz (via metro) by munnari.oz.au with SunIII (5.64+1.3.1+0.50) id AA12126; Mon, 10 Feb 1992 13:35:13 +1100 (from Sm@cerberus.bhpese.oz.au) Received: from localhost by cerberus.bhpese.oz.au with ELM 2.3 PL5 id AA26625; Mon, 10 Feb 1992 13:34:47 +1100; sendmail 5.65c/Sm3.0RMSU (from Sm@cerberus.bhpese.oz.au for rc@archone.tamu.edu@munnari.oz.au) Message-Id: <199202100234.AA26625@cerberus.bhpese.oz.au> From: Scott Merrilees Subject: Re: path caching To: rc@archone.tamu.edu (The rc Mailing List) Date: Mon, 10 Feb 1992 07:34:46 -0600 In-Reply-To: <9202091855.AA05991@ibmpcug.co.uk>; from "Matthew Farwell" at Feb 9, 92 12:55 pm X-Face: '82~l%BnDBWVn])DV^cl_%bla$T]kNbRN&]>v{ED9[" Why can't you do something like: > This is untested, since I don't have symbolic links. > cache = $home/.cache > fn rehash { > for (i in $path) { > @{ cd $i > for (j in *) { > if (! test -x $cache/$j) ln -s $i/$j $cache/$j > } > } > } > } Possible, but I wanted to keep the size of the cache down, so directory lookups are quicker. If I did the above, I would have one directory with approx 1800 entries. I would also have name clashes with system v vs bsd vs gnu stuff. Still it may be worth testing. Sm -- Scott Merrilees, BHP Information Technology, Newcastle, Australia Internet: Sm@bhpese.oz.au Phone: +61 49 40 2132 Fax: ... 2165