aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
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)
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;