Make egrep only set REG_EXTENDED flag.
authorMatt Kraai <kraai@debian.org>
Wed, 31 Oct 2001 16:16:31 +0000 (16:16 -0000)
committerMatt Kraai <kraai@debian.org>
Wed, 31 Oct 2001 16:16:31 +0000 (16:16 -0000)
findutils/grep.c
testsuite/grep/egrep-is-not-case-insensitive [new file with mode: 0644]
testsuite/grep/egrep-supports-extended-regexps [new file with mode: 0644]

index eeab1638754320bb77b614ff7a4845e2d5a2a06e..7afa817dad8e071bcb7e76284ce2551618baab7b 100644 (file)
@@ -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 (file)
index 0000000..f12c54c
--- /dev/null
@@ -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 (file)
index 0000000..8db154c
--- /dev/null
@@ -0,0 +1 @@
+test x`echo foo | busybox egrep fo+` = xfoo