summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index a97a8bb..7cd8196 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -243,6 +243,11 @@ extern int grep_main(int argc, char **argv)
perror_msg_and_die("atexit");
#endif
+#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
+ if (strcmp (basename (argv[0]), "egrep") == 0)
+ reflags |= REG_ICASE;
+#endif
+
/* do normal option parsing */
while ((opt = getopt(argc, argv, "iHhlnqvsce:f:"
#ifdef CONFIG_FEATURE_GREP_CONTEXT