Package: findutils
Version: 4.2.27-3

        It seems that the `-name' behaves inconsistently when one of the
        `path's given contain a trailing slash:

$ find /tmp/ -name tmp/ -and -printf 'Found: %p\n' 
find: warning: Unix filenames usually don't contain slashes (though pathnames 
do).  That means that '-name tmp/' will probably evaluate to false all the time 
on this system.  You might find the '-wholename' test more useful, or perhaps 
'-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... 
-print0 | grep -FzZ tmp/'.
Found: /tmp/
$ 

        Please note that it isn't possible to use just /DIRECTORY as the
        `path', since then the symbolic link won't be followed:

$ find /SYMLINK-TO-A-DIRECTORY 
/SYMLINK-TO-A-DIRECTORY
$ find /SYMLINK-TO-A-DIRECTORY/ 
/SYMLINK-TO-A-DIRECTORY/
/SYMLINK-TO-A-DIRECTORY/FOO
...
$ 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to