summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai2001-10-31 16:16:31 +0000
committerMatt Kraai2001-10-31 16:16:31 +0000
commitbb0088e98048101d368d00249ab0807db56f2c49 (patch)
tree2e405dd9d54ea3ea2cb7475cb3f990235e2460e0
parent8fc05897779393decadaf808e4694fbf1efe1c56 (diff)
downloadbusybox-bb0088e98048101d368d00249ab0807db56f2c49.zip
busybox-bb0088e98048101d368d00249ab0807db56f2c49.tar.gz
Make egrep only set REG_EXTENDED flag.
-rw-r--r--findutils/grep.c1
-rw-r--r--testsuite/grep/egrep-is-not-case-insensitive1
-rw-r--r--testsuite/grep/egrep-supports-extended-regexps1
3 files changed, 2 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index eeab163..7afa817 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -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
diff --git a/testsuite/grep/egrep-is-not-case-insensitive b/testsuite/grep/egrep-is-not-case-insensitive
new file mode 100644
index 0000000..f12c54c
--- /dev/null
+++ b/testsuite/grep/egrep-is-not-case-insensitive
@@ -0,0 +1 @@
+test x`echo foo | busybox egrep FOO` = x
diff --git a/testsuite/grep/egrep-supports-extended-regexps b/testsuite/grep/egrep-supports-extended-regexps
new file mode 100644
index 0000000..8db154c
--- /dev/null
+++ b/testsuite/grep/egrep-supports-extended-regexps
@@ -0,0 +1 @@
+test x`echo foo | busybox egrep fo+` = xfoo