Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 3.1.5: ``***'' symlink follow broken



"Bart Schaefer" wrote:
> So *unless* somebody knows of a reason not to do opendir() on something
> that isn't a directory, I think Geoff's patch is actually better [on the
> assumption that a failed opendir() is faster than a successful stat()].

I thought about it some more last night and came to this conclusion
too.  Only if you can test the number of subdirectories, and hence
prune empty subdirectories, is the stat() worthwhile.  I'm very
tempted by Geoff's second suggestion, though.

> Late last night I was of the opinion that `closure' mattered more than
> did `q->follow', but I've since revised that opinion.

I think it's written so that `closure' matters as little as possible
when it's analysing individual directories.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author