diff options
author | Matt Kraai <kraai@debian.org> | 2001-10-29 15:49:03 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-10-29 15:49:03 +0000 |
commit | 999623e9736d21177d1f437679b334e0347a6e0f (patch) | |
tree | f49f55887c6de8c9ced3458ac1a2d981a5e3f374 /findutils/grep.c | |
parent | b5f2516e3fc2398462a136a69a5f6120cf23b5f4 (diff) | |
download | busybox-w32-999623e9736d21177d1f437679b334e0347a6e0f.tar.gz busybox-w32-999623e9736d21177d1f437679b334e0347a6e0f.tar.bz2 busybox-w32-999623e9736d21177d1f437679b334e0347a6e0f.zip |
Use extended regular expressions when invoked as egrep (noted and initial
patch by Charles Steinkuehler).
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 5 |
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 |