[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #23920] find.1: please add short note about no trailing slashes for
From: |
James Youngman |
Subject: |
[bug #23920] find.1: please add short note about no trailing slashes for directories |
Date: |
Fri, 10 Apr 2009 12:09:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009032813 Iceweasel/3.0.6 (Debian-3.0.6-1) |
Follow-up Comment #7, bug #23920 (project findutils):
"shell pattern" does have a specific meaning; see
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13
for example.
I don't understand your point here:
<< Note that the result line of an object differs depending on the given
search path, you have take care of this in your "-path" expressions.
Example:
cd ~
find find1 ./find1 ~/find1 -type d -name "test1"
=> find1/test1
=> ./find1/test1
=> /root/find1/test1 (or /home/<user>/find1/test1)
>>
The example presumably relates to the paragraph before it, but it doesn't use
-path.
Certainly -name 'foo/' will not match anything, since / is not part of the
basename of any file other than / and //. On the other hand "-path foo/"
will match something if ./foo/. exists and foo/ was a command line argument.
This behaviour is required by POSIX; see
http://www.opengroup.org/austin/interps/uploads/40/14959/AI-186.txt
However, maybe I misunderstood your point an so I'm responding to something
you didn't actually say.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23920>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/