aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-29 15:49:03 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-29 15:49:03 +0000
commit99f25757d3ddfdbe764f04ee037b19b748b7caec (patch)
treef49f55887c6de8c9ced3458ac1a2d981a5e3f374 /findutils/grep.c
parent8e22fcef462de1311ae95ac92bf755e35aedf042 (diff)
downloadbusybox-w32-99f25757d3ddfdbe764f04ee037b19b748b7caec.tar.gz
busybox-w32-99f25757d3ddfdbe764f04ee037b19b748b7caec.tar.bz2
busybox-w32-99f25757d3ddfdbe764f04ee037b19b748b7caec.zip
Use extended regular expressions when invoked as egrep (noted and initial
patch by Charles Steinkuehler). git-svn-id: svn://busybox.net/trunk/busybox@3601 69ca8d6d-28ef-0310-b511-8ec308f3f277
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