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, ®ion, glxdri2.c: DRI2CopyRegion(drawable->pDraw, ®ion, glxdri2.c: DRI2CopyRegion(drawable->pDraw, ®ion, grep CopyRegion * --include "*.c" Returns NOTHING. grep CopyRegion * -R glxdri2.c: DRI2CopyRegion(drawable->pDraw, ®ion, glxdri2.c: DRI2CopyRegion(drawable->pDraw, ®ion, glxdri2.c: DRI2CopyRegion(drawable->pDraw, ®ion, 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/