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

 
 

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

Submitter:  Peter Clifton <pcjc2>
Submitted:  Fri 22 Oct 2010 09:02:09 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Invalid
Privacy:  Public Assigned to:  jay
Originator Name:  Peter Clifton Open/Closed:  Closed
Release:  4.4.2 Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Oct 2010 09:17:06 PM UTC, comment #3: 
Eric Blake <ericb>
Group 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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-22 ericb StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2010-10-22 jay StatusNone Need Info
        Assigned toNone jay
    2010-10-22 pcjc2 Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code