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: Reza Roboubi
Subject: Re: find . -wholename ’./src/emacs’ -prune -o -print
Date: Wed, 24 Feb 2010 21:29:47 -0800
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Eric Blake wrote:
According to Reza Roboubi on 2/24/2010 9:47 PM:
The man page seems buggy:
find . -wholename ’./src/emacs’ -prune -o -print
It works _without_ the ticks(quotes) contrary to what the man page says.

There's a difference between "’" which you copied from the man page (a
nice Unicode stylized right single quote) and "'" which is what you get
when you type an apostrophe on your keyboard.  Most likely, the problems
you are seeing are due to pasting the wrong character.

Sorry about the Cut & Paste confusion. Of course I tried it with proper single quotes as well. My real problem was I did this:

find . -wholename './src/emacs/' -prune -o -print   (extra slash)

and that wasn't working.  Why is that?

> find . -wholename ./src/emacs -prune -o -print
> find . -wholename './src/emacs' -prune -o -print
> find . -wholename "./src/emacs" -prune -o -print
> find . -wholename \./src/emacs -prune -o -print

Thanks for thoroughly explaining the bash syntax with examples.

Reza.




reply via email to

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