On Thu, Feb 25, 2010 at 5:29 AM, Reza Roboubi <[email protected]> wrote:
> find . -wholename './src/emacs/' -prune -o -print   (extra slash)
>
> and that wasn't working.  Why is that?

Because path names examined by find never include a trailing slash.

Similarly "find -name a/b" will never find anything, since -name only
works with files' base names (i.e. with the directory part removed)
and so they never include a slash.

The manpage should probably point out both facts.

James.


Reply via email to