[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #23964] Conflicting assumptions about slashes and -name
From: |
Eric Blake |
Subject: |
[bug #23964] Conflicting assumptions about slashes and -name |
Date: |
Wed, 30 Jul 2008 12:11:41 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 Mnenhy/0.7.5.666 |
Follow-up Comment #1, bug #23964 (project findutils):
The second version CANNOT match anything, and if it did match something, then
that is a bug. '-name' implies that a basename search is performed, and the
basename of './core.*' is 'core.*', regardless of whether you searched in
core* or ./core*. The reason your first version matched nothing is because
core files with a literal * in the name are rare, you probably meant "-name
core.*" or "-name 'core.*'" in your shell quoting, rather than the overquoted
"-name 'core.*'".
In fact, bug 20970 was all about fixing the -name diagnostics, since the ONLY
file that can ever match -name while containing a / is "/" (and "//" on
certain systems).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23964>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/