bugfindutils - Bugs: bug #31420, find --include "*.c"...

 
 

bug #31420: find --include "*.c" doesn't *.c find files in current directory

Submitted by:  Peter Clifton <pcjc2>
Submitted on:  Fri 22 Oct 2010 09:02:09 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Invalid
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Peter CliftonOpen/Closed: Closed
Release: 4.4.2Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 22 Oct 2010 09:17:06 PM UTC, comment #3:

And fixed in grep 2.7:
https://savannah.gnu.org/forum/forum.php?forum_id=6521

Eric Blake <ericb>
Project Administrator
Fri 22 Oct 2010 09:15:05 PM UTC, comment #2:

Goodness, you are completely right!

HEAD DESK!

Sorry for the noise

Peter Clifton <pcjc2>
Fri 22 Oct 2010 09:08:03 PM UTC, comment #1:

It looks to me as if your bog report is about grep, not findutils. See the section entitled BUGS in the manual page for grep. Or did I misunderstand the problem you're trying to describe?

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 22 Oct 2010 09:02:09 PM UTC, original submission:

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.

Peter Clifton <pcjc2>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by pcjc2 (Submitted the item)
  • -unavailable- added by pcjc2
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Oct 2010 09:17:06 PM UTCericbStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Fri 22 Oct 2010 09:08:03 PM UTCjayStatusNone=>Need Info
      Assigned toNone=>jay
    Fri 22 Oct 2010 09:02:09 PM UTCpcjc2Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1