bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #31420] find --include "*.c" doesn't *.c find files in current dire


From: Peter Clifton
Subject: [bug #31420] find --include "*.c" doesn't *.c find files in current directory
Date: Fri, 22 Oct 2010 21:02:09 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-gb) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Ubuntu/10.10 () Epiphany/2.30.2

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

                 Summary: find --include "*.c" doesn't *.c find files in
current directory
                 Project: findutils
            Submitted by: pcjc2
            Submitted on: Fri Oct 22 21:02:09 2010
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Peter Clifton
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

For example:


~/source/xserver_git/glx$ grep CopyRegion * --include "*.c" -R

Returns NOTHING.


~/source/xserver_git/glx$ grep CopyRegion * --include "*.cfoo" -R
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,


grep CopyRegion * --include "*.c"

Returns NOTHING.


grep CopyRegion * -R
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,
glxdri2.c:    DRI2CopyRegion(drawable->pDraw, &region,


Looks to me like the test for --include is being inverted for some reasons.
(See how --include "*.cfoo" finds the *.c files. This is not the case for
anything OTHER than the current directory.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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