*BSD News Article 65574


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!cs.utexas.edu!howland.reston.ans.net!newsfeed.internetmci.com!in1.uu.net!EU.net!Portugal.EU.net!news.rccn.net!newsfeed.sunet.se!news01.sunet.se!sunic!news99.sunet.se!news.uni-c.dk!ssv2.dina.kvl.dk!news
From: Per Abrahamsen <abraham@dina.kvl.dk>
Newsgroups: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc
Subject: Re: Ideal filesystem
Date: 09 Apr 1996 14:12:07 +0200
Organization: Royal Veterinary & Agricultural U., Copenhagen, Denmark
Lines: 26
Sender: abraham@babbage.dina.kvl.dk
Message-ID: <rjlok5zje0.fsf@babbage.dina.kvl.dk>
References: <4hptj4$cf4@cville-srv.wam.umd.edu> <3140C968.20699696@netcom.com>
	<4istou$ri9@floyd.sw.oz.au> <4j0bmo$ftv@park.uvsc.edu>
	<jlemonDoqBq5.1Bx@netcom.com> <4jerrj$f12@park.uvsc.edu>
	<4joiil$r75@narses.hrz.tu-chemnitz.de> <4jvi4i$oim@park.uvsc.edu>
NNTP-Posting-Host: babbage.dina.kvl.dk
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM<U{B+4e{k79.Ya{~':DblFPCg$
 @60,BfLv2@SKZ19cMWK0/C'v;tM:|6B'R}U1rp6CL&kN({9<zF/V{:JCg27yC)9oZjeqcQawzKfiNL
 t9}`vjmK["dRQC/qGFQq"%u|Q`:6{"Rz}b(dnl_"3$Jtqimi>|8MBp/
X-Newsreader: September Gnus v0.67/Emacs 19.30
Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:21072 comp.unix.bsd.freebsd.misc:17056

>>>>> "TL" == Terry Lambert <terry@lambert.org> writes:

TL> If you have to search each potential executable as a directory
TL> to see if it has an "a.out" (executable file) "fork", then
TL> you have increased the search time one order of magnitude on
TL> an expotential curve (directories rarely contain one file).

I'm unable to comprehend the problem.  

Now: The shell puts everything in the path with executable permission
in the hash.  If it is not really an executable, we get an error.
This is rare, as you usually don't put non-executables in the path.

Then: The shell puts everything in the path with executable permission
in the hash.  If it is not really an executable, we get an error.
This is rare, as you usually don't put non-executables in the path.

Here is an example with tcsh:

	kleene% mkdir ~/bin/kurt
	kleene% rehash
	kleene% kurt
	/home/user_22/abraham/bin/kurt: Permission denied.

What would be so much worse worse with directory attributes?