Follow-up Comment #5, bug #23920 (project findutils):
Oops. I was thinking that -path added an implicit leading and trailing *,
but that is not the case. Just like -name, the pattern does not match an
internal substring unless explicit globs are provided. So, revisiting the
examples:
$ find 2008/ 2001/ -path 2008/ -o -path 2001
2008/
$ find 2008/ 2001/ -path 2008/ -o -path '2001*'
2001/
2008/
$ find 2008 2001 -path 2008/ -o -path 2001
2001
$ find ./src/emacs/ -path ./src/emacs/
./src/emacs/
$ find . -path ./src/emacs/
$ find . -path './src/emacs/*'
./src/emacs/foo.c
So, indeed, a trailing slash to path will never match anything except command
line arguments, making it almost worthless for -prune.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23920>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/