From 999623e9736d21177d1f437679b334e0347a6e0f Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 29 Oct 2001 15:49:03 +0000 Subject: Use extended regular expressions when invoked as egrep (noted and initial patch by Charles Steinkuehler). --- findutils/grep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'findutils/grep.c') 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) 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 -- cgit v1.2.3