bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find . -wholename ’./src/emacs’ - prune -o -print


From: James Youngman
Subject: Re: find . -wholename ’./src/emacs’ - prune -o -print
Date: Thu, 25 Feb 2010 10:42:01 +0000

On Thu, Feb 25, 2010 at 5:29 AM, Reza Roboubi <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]