Make egrep only set REG_EXTENDED flag.
This commit is contained in:
1 parent
8fc0589777
commit
bb0088e980
3 files changed
+2
-1
No files matched your search
@@ -245,7 +245,6 @@ extern int grep_main(int argc, char **argv)
|
||||
|
||||
#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
|
||||
if (strcmp (basename (argv[0]), "egrep") == 0)
|
||||
reflags |= REG_ICASE;
|
||||
reflags |= REG_EXTENDED;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
test x`echo foo | busybox egrep FOO` = x
|
||||
@@ -0,0 +1 @@
|
||||
test x`echo foo | busybox egrep fo+` = xfoo
|
||||
Reference in new issue
Block a user