aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-31 10:02:46 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-31 10:02:46 +0000
commitccd96f1972b4f660a37f6b681743f5c1511e7a38 (patch)
tree34932e11cd32f4293fc3bdd9b8872b5a9a8c4f41 /findutils/grep.c
parent3d61b10595a101ec60926728c9d1988a2db6db59 (diff)
downloadbusybox-w32-ccd96f1972b4f660a37f6b681743f5c1511e7a38.tar.gz
busybox-w32-ccd96f1972b4f660a37f6b681743f5c1511e7a38.tar.bz2
busybox-w32-ccd96f1972b4f660a37f6b681743f5c1511e7a38.zip
Patch from Charles Steinkuehler <charles@steinkuehler.net>
to properly handle extended regexps for egrep
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 7cd8196fd..eeab16387 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -246,6 +246,7 @@ extern int grep_main(int argc, char **argv)
246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS 246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
247 if (strcmp (basename (argv[0]), "egrep") == 0) 247 if (strcmp (basename (argv[0]), "egrep") == 0)
248 reflags |= REG_ICASE; 248 reflags |= REG_ICASE;
249 reflags |= REG_EXTENDED;
249#endif 250#endif
250 251
251 /* do normal option parsing */ 252 /* do normal option parsing */