projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c223ced
)
Add in grep -E support
author
Eric Andersen
<andersen@codepoet.org>
Sat, 10 Nov 2001 12:54:00 +0000
(12:54 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 10 Nov 2001 12:54:00 +0000
(12:54 -0000)
findutils/grep.c
patch
|
blob
|
history
diff --git
a/findutils/grep.c
b/findutils/grep.c
index 7afa817dad8e071bcb7e76284ce2551618baab7b..faecb58bcb18fca459bbfcbb69c830d19b75bf68 100644
(file)
--- a/
findutils/grep.c
+++ b/
findutils/grep.c
@@
-253,6
+253,9
@@
extern int grep_main(int argc, char **argv)
#ifdef CONFIG_FEATURE_GREP_CONTEXT
"A:B:C:"
#endif
+#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
+"E"
+#endif
)) > 0) {
switch (opt) {
case 'i':
@@
-285,6
+288,11
@@
extern int grep_main(int argc, char **argv)
case 'e':
add_regex(optarg);
break;
+#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
+ case 'E':
+ reflags |= REG_EXTENDED;
+ break;
+#endif
case 'f':
load_regexes_from_file(optarg);
break;