builtin-grep: pass ignore case option to external grep
PATCH 1/1 builtin-grep: pass ignore case option to external grep
Don't just read the --ignore-case/-i option, pass the flag on to the external grep program.
Signed-off-by Robert Fitzsimons <[email protected]>
--- builtin-grep.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
builtin-grep.c +2 -0
@@ -459,6 +459,8 @@ static int external_grep(struct grep_optpush_arg ("-n" );if (opt->regflags ®_EXTENDED )push_arg ("-E" ); +if (opt->regflags ®_ICASE ) +push_arg ("-i" );if (opt->word_regexp)push_arg ("-w" );if (opt->name_only)
Signature · 1 line
1.3.3.g16a4-dirty
Quoted 3 lines · Robert Fitzsimons
Don't just read the --ignore-case/-i option, pass the flag on to the external grep program.
Oops. How did we miss that one ;)
Embarrassing.
Linus