From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eros.uknet.ac.uk ([192.91.199.2]) by archone.tamu.edu with SMTP id <45338>; Wed, 12 Feb 1992 14:28:35 -0600 Received: from ibmpcug.co.uk by eros.uknet.ac.uk with UUCP id <29792-0@eros.uknet.ac.uk>; Wed, 12 Feb 1992 20:28:42 +0000 Received: by ibmpcug.co.uk (smail2.5) id AA03509; 12 Feb 92 17:32:40 GMT (Wed) X-Phone-Work: +44 81 863-1191 X-Fax-Work: +44 81 863-6095 X-Favourite-Colour: black, of course. Newsgroups: list.rc In-Reply-To: <199202100234.AA26625@cerberus.bhpese.oz.au> Organization: The IBM PC User Group, UK. X-Mailer: Mail User's Shell (7.1.2 7/11/90) To: rc@archone.tamu.edu Subject: Re: path caching Message-Id: <9202121732.AA03504@ibmpcug.co.uk> Date: Wed, 12 Feb 1992 11:32:39 -0600 From: Matthew Farwell In article <199202100234.AA26625@cerberus.bhpese.oz.au> you write: >> 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. You still have the name clashes anyway. Dylan.