Red Hat Bugzilla – Bug 57567
find <path> -follow -type l never finds anything
Last modified: 2005-10-31 17:00:50 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (Win98; U)
Description of problem:
When set to follow symlinks (-follow) find no longer reports the existance
of symlinks in it's output.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.type "find . -type l -follow" in a directory which contains one or more
Actual Results: Find produced no output
Expected Results: Find should list the symlinks, and follow them
listing any subsequent symlinks encountered.
Find installed from the findutils-4.1.6-2 package as part of Redhat 7.1.
You mean to use '-xtype', not '-type'. 'find -type l -follow' means: find me
all the symbolic links which, when derefenced to find the (non-symlink)
target, turn out to point to symlinks.
Of course there are no such files. :-)
In contrast, 'find -xtype l -follow' does what you want.