From bb0088e98048101d368d00249ab0807db56f2c49 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 31 Oct 2001 16:16:31 +0000 Subject: [PATCH] Make egrep only set REG_EXTENDED flag. --- findutils/grep.c | 1 - testsuite/grep/egrep-is-not-case-insensitive | 1 + testsuite/grep/egrep-supports-extended-regexps | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 testsuite/grep/egrep-is-not-case-insensitive create mode 100644 testsuite/grep/egrep-supports-extended-regexps diff --git a/findutils/grep.c b/findutils/grep.c index eeab16387..7afa817da 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 000000000..f12c54cd5 --- /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 000000000..8db154c21 --- /dev/null +++ b/testsuite/grep/egrep-supports-extended-regexps @@ -0,0 +1 @@ +test x`echo foo | busybox egrep fo+` = xfoo -- 2.25.1