From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from plg.waterloo.edu ([129.97.140.10]) by archone.tamu.edu with SMTP id <22543>; Thu, 1 Aug 1991 14:49:19 -0500 Received: by plg.waterloo.edu id ; Thu, 1 Aug 91 15:49:04 -0400 Date: Thu, 1 Aug 1991 14:49:04 -0500 From: Hamish Macdonald Message-Id: <9108011949.AA25123@plg.waterloo.edu> To: rc@archone.tamu.edu Subject: access References: <9108011936.AA15100@milton.u.washington.edu> X-Face: ?@I^nI4_%XE8*nj3Fq%X[b9WO"rc%8-"ABpU;u~MTj/]hn_r}x31/-3}q}#!hnK WDL^9n"Gp)oSlgqG,XsB|6=+sC8t$F_a)acNXB!~M-+9^RUDhb&qf}]nifEK~ 2>&zJ@miYi|uS}wI&z:{N0?]V^7:clN\ X-Zippy-Sez: .. bleakness.... desolation.... plastic forks... >>>>> On Thu, 1 Aug 1991 14:36:25 -0500, >>>>> In message <9108011936.AA15100@milton.u.washington.edu>, >>>>> Donn Cave wrote: Donn> As long as there's going to be a list for rc, it would be nice Donn> if contributors could include some useful information in their Donn> postings. Good point. I basically agree with Boyd, that if it can be done outside the shell, it should. I hope people can see how adding a feature because it makes things faster could send one down the feeping creaturism road. In David's case, it appears that repeated calls to "test" in a short period of time are his problem. The purpose of this is to determine what to put in his path. Perhaps in general, the overhead of calling "test" is not usually a problem. Perhaps, then, what he needs to do is create a utility which for each directory name argument will check if the directory exists, and output the name if it does. Thus, setting his path simply becomes: path=`{$home/bin/exists $path thatdir theotherdir /usr/local} and then only one "exec" is needed for this in his .rcrc.