aboutsummaryrefslogtreecommitdiff
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 a97a8bbb7..7cd8196fd 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -243,6 +243,11 @@ extern int grep_main(int argc, char **argv)
243 perror_msg_and_die("atexit"); 243 perror_msg_and_die("atexit");
244#endif 244#endif
245 245
246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
247 if (strcmp (basename (argv[0]), "egrep") == 0)
248 reflags |= REG_ICASE;
249#endif
250
246 /* do normal option parsing */ 251 /* do normal option parsing */
247 while ((opt = getopt(argc, argv, "iHhlnqvsce:f:" 252 while ((opt = getopt(argc, argv, "iHhlnqvsce:f:"
248#ifdef CONFIG_FEATURE_GREP_CONTEXT 253#ifdef CONFIG_FEATURE_GREP_CONTEXT