Make egrep only set REG_EXTENDED flag.
This commit is contained in:
parent
8fc0589777
commit
bb0088e980
@ -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
|
||||
|
||||
|
1
testsuite/grep/egrep-is-not-case-insensitive
Normal file
1
testsuite/grep/egrep-is-not-case-insensitive
Normal file
@ -0,0 +1 @@
|
||||
test x`echo foo | busybox egrep FOO` = x
|
1
testsuite/grep/egrep-supports-extended-regexps
Normal file
1
testsuite/grep/egrep-supports-extended-regexps
Normal file
@ -0,0 +1 @@
|
||||
test x`echo foo | busybox egrep fo+` = xfoo
|
Loading…
x
Reference in New Issue
Block a user