[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: Gecko/20080702 Firefox/ Mnenhy/

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:


  Message sent via/by Savannah

reply via email to

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