aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index e163e6562..5ed3faab2 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -689,11 +689,15 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
689 FILE *file; 689 FILE *file;
690 int matched; 690 int matched;
691 llist_t *fopt = NULL; 691 llist_t *fopt = NULL;
692
693 /* do normal option parsing */
694#if ENABLE_FEATURE_GREP_CONTEXT 692#if ENABLE_FEATURE_GREP_CONTEXT
695 int Copt, opts; 693 int Copt, opts;
694#endif
696 695
696 /* For grep, exitcode of 1 is "not found". Other errors are 2: */
697 xfunc_error_retval = 2;
698
699 /* do normal option parsing */
700#if ENABLE_FEATURE_GREP_CONTEXT
697 /* -H unsets -h; -C unsets -A,-B; -e,-f are lists; 701 /* -H unsets -h; -C unsets -A,-B; -e,-f are lists;
698 * -m,-A,-B,-C have numeric param */ 702 * -m,-A,-B,-C have numeric param */
699 opt_complementary = "H-h:C-AB:e::f::m+:A+:B+:C+"; 703 opt_complementary = "H-h:C-AB:e::f::m+:A+:B+:C+";