From 25b8652b4f0122f23fbd1e59961935d9ea5e600e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 31 Jul 2005 22:41:05 +0000 Subject: patch by srowe in Bug 359 to fix fgrep aliasing --- busybox/findutils/grep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'busybox/findutils/grep.c') diff --git a/busybox/findutils/grep.c b/busybox/findutils/grep.c index 9b26add..a8fd2d4 100644 --- a/busybox/findutils/grep.c +++ b/busybox/findutils/grep.c @@ -326,6 +326,11 @@ extern int grep_main(int argc, char **argv) if(opt & GREP_OPT_f) load_regexes_from_file(fopt); +#ifdef CONFIG_FEATURE_GREP_FGREP_ALIAS + if(bb_applet_name[0] == 'f') + fgrep_flag = 1; +#endif + #ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS if(bb_applet_name[0] == 'e' || (opt & GREP_OPT_E)) reflags = REG_EXTENDED | REG_NOSUB; -- cgit v1.1