@matheusbsbs / matheus-bagliano / commits / f66475199c
Fork 0

Fix silly typo in new builtin grep

The "-F" flag apparently got mis-translated due to some over-eager copy-paste work into a duplicate "-H" when using the external grep. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Linus Torvalds committed May 15, 2006 at 17:54 UTC f66475199cbf50d9da9db617a280aac3196b2250
1 file changed +1 -1
builtin-grep.c
+1 -1
@@ -455,7 +455,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
455 push_arg("grep");
456 push_arg("-H");
457 if (opt->fixed)
458 - push_arg("-H");
458 + push_arg("-F");
459 if (opt->linenum)
460 push_arg("-n");
461 if (opt->regflags & REG_EXTENDED)