Should find traverse symbolic links?
Neil Rickert
rickert at mp.cs.niu.edu
Tue Feb 26 01:35:43 AEST 1991
In article <1991Feb25.130613.2553 at phri.nyu.edu> roy at alanine.phri.nyu.edu (Roy Smith) writes:
> I was surprised to observe today that if you do "find dir ..." and
>dir is a symbolic link to a directory, the directory isn't entered. Thus:
>alanine>
>
> This seems to me to be The Wrong Thing. Is it a bug in find, or
>was it really intended to work that way? I get the same results on MtXinu
Now just imagine I run a script overnight to remove stale core files.
Naturally I use something like:
find . -atime +7 -name core -exec rm \{\} \;
But, unbeknowns to me, some user has done the following:
ln -s / root
If find followed symbolic links, how long do you think it would take this
script to complete its execution?
--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Neil W. Rickert, Computer Science <rickert at cs.niu.edu>
Northern Illinois Univ.
DeKalb, IL 60115 +1-815-753-6940
More information about the Comp.unix.wizards
mailing list