Skip to content

Commit

Permalink
Fix silly typo in new builtin grep
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed May 16, 2006
1 parent ffa0a7a commit f664751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
push_arg("grep");
push_arg("-H");
if (opt->fixed)
push_arg("-H");
push_arg("-F");
if (opt->linenum)
push_arg("-n");
if (opt->regflags & REG_EXTENDED)
Expand Down

0 comments on commit f664751

Please sign in to comment.