mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
Make egrep only set REG_EXTENDED flag.
This commit is contained in:
parent
8fc0589777
commit
bb0088e980
3 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue