Follow-up Comment #6, bug #29358 (project grep):
I forgot, this one to main.c, manpage reads:
--include=GLOB
Search only files whose base name matches GLOB (using wildcard
matching as described under --exclude).
Which currently doesn't happens unless EXCLUDE_WILDCARDS is also on
add_exclude() options:
--- grep-2.6.1/src/main.c.orig
+++ grep-2.6.1/src/main.c
@@ -2066,7 +2066,7 @@
case INCLUDE_OPTION:
if (!included_patterns)
included_patterns = new_exclude ();
- add_exclude (included_patterns, optarg, EXCLUDE_INCLUDE);
+ add_exclude (included_patterns, optarg, EXCLUDE_INCLUDE |
EXCLUDE_WILDCARDS);
break;
case GROUP_SEPARATOR_OPTION:
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29358>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/