From: Nguyễn Thái Ngọc Duy Date: Sun, 14 Feb 2016 11:49:45 GMT Subject: [PATCH v7 01/12] grep: allow -F -i combination Message-ID: <1455450596-11904-2-git-send-email-pclouds@gmail.com> In-Reply-To: <1455450596-11904-1-git-send-email-pclouds@gmail.com> -F means "no regex", not "case sensitive" so it should not override -i Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/grep.c b/builtin/grep.c index 8c516a9..46c5ba1 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -809,7 +809,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix) if (!opt.pattern_list) die(_("no pattern given.")); - if (!opt.fixed && opt.ignore_case) + if (opt.ignore_case) opt.regflags |= REG_ICASE; compile_grep_patterns(&opt); -- 2.7.0.377.g4cd97dd