URL:
  <http://savannah.gnu.org/bugs/?30772>

                 Summary: Erroneous results while using printf on a name
query
                 Project: findutils
            Submitted by: bt3
            Submitted on: Fri 13 Aug 2010 10:25:54 PM GMT
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Bake Timmons
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

To reproduce, try

$ mkdir -p a/{b,.c,.de}
$ find -name '.[!.]*' -o -name '[!.]*' -printf '%f\n'
b

Yet, we have
$ find -name '.[!.]*' -o -name '[!.]*'
./b
./.c
./.de

Although I have since realized that '-not -name .' is the right way to solve
my original problem (instead of the options with the glob patterns), the first
find command above does indeed show a bug.

Thanks.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30772>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to