rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Matthew Farwell <dylan@ibmpcug.co.uk>
To: rc@archone.tamu.edu
Subject: Re: path caching
Date: Sun, 9 Feb 1992 12:55:47 -0600	[thread overview]
Message-ID: <9202091855.AA05991@ibmpcug.co.uk> (raw)
In-Reply-To: <199202081101.AA05781@cerberus.bhpese.oz.au>


In article <199202081101.AA05781@cerberus.bhpese.oz.au> you write:
>I've been playing with the idea of a file system based path cache, as
>my path is rather long.  Enclosed is some doco I wrote on the caching,
>and accompanying instrumentation.  This is currently for rc 1.2, I am
>just about to post it to 1.3b.  Comments ?
>
>[ deleted ]

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
		}
		}
	}
}

or something like that.  Then you only require one directory in your
path, ie $cache.

Dylan.


  parent reply	other threads:[~1992-02-09 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-02-08 22:01 Scott Merrilees
1992-02-08 14:32 ` John Mackin
1992-02-08 17:19 ` Chris Siebenmann
1992-02-09 14:06   ` Scott Merrilees
1992-02-09 18:55 ` Matthew Farwell [this message]
1992-02-10 13:34   ` Scott Merrilees
1992-02-12 17:32     ` Matthew Farwell
  -- strict thread matches above, loose matches on Subject: below --
1992-02-08 13:31 DaviD W. Sanderson
1992-02-09 14:15 ` Scott Merrilees

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9202091855.AA05991@ibmpcug.co.uk \
    --to=dylan@ibmpcug.co.uk \
    --cc=rc@archone.tamu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).