aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-31 22:41:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-31 22:41:05 +0000
commit15ca58648a84ff30821ead91b47562863f36a7c5 (patch)
treea57dc204ef744ff6fb88abca452954276b68a248 /findutils/grep.c
parent66c37d1390e3fa566e3e68a09a9fb9a34eb6ded3 (diff)
downloadbusybox-w32-15ca58648a84ff30821ead91b47562863f36a7c5.tar.gz
busybox-w32-15ca58648a84ff30821ead91b47562863f36a7c5.tar.bz2
busybox-w32-15ca58648a84ff30821ead91b47562863f36a7c5.zip
patch by srowe in Bug 359 to fix fgrep aliasing
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 9b26add9a..a8fd2d41a 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -326,6 +326,11 @@ extern int grep_main(int argc, char **argv)
326 if(opt & GREP_OPT_f) 326 if(opt & GREP_OPT_f)
327 load_regexes_from_file(fopt); 327 load_regexes_from_file(fopt);
328 328
329#ifdef CONFIG_FEATURE_GREP_FGREP_ALIAS
330 if(bb_applet_name[0] == 'f')
331 fgrep_flag = 1;
332#endif
333
329#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS 334#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
330 if(bb_applet_name[0] == 'e' || (opt & GREP_OPT_E)) 335 if(bb_applet_name[0] == 'e' || (opt & GREP_OPT_E))
331 reflags = REG_EXTENDED | REG_NOSUB; 336 reflags = REG_EXTENDED | REG_NOSUB;