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/



Reply via email to