Follow-up Comment #5, bug #29358 (project grep):
Try this little patch to exclude.c:
--- grep-2.6.1/lib/exclude.c.orig
+++ grep-2.6.1/lib/exclude.c
@@ -342,7 +342,7 @@
{
char const *pattern = exclude[i].pattern;
int options = exclude[i].options;
- if (excluded != exclude_fnmatch (pattern, f, options))
+ if (exclude_fnmatch (pattern, f, options))
return !excluded;
}
return excluded;
If I got the logic right, then exclude_fnmatch() should return !excluded on
string match, not depending on if EXCLUDE_INCLUDE was set.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29358>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/