Patch from Charles Steinkuehler <charles@steinkuehler.net>

to properly handle extended regexps for egrep
This commit is contained in:
Eric Andersen 2001-10-31 10:02:46 +00:00
parent 3d61b10595
commit ccd96f1972

View File

@ -246,6 +246,7 @@ 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
/* do normal option parsing */