diff options
author | Ron Yorston <rmy@pobox.com> | 2016-04-04 16:22:54 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-04-04 16:22:54 +0100 |
commit | 253dbd612b2d2f041f4263e15a3b94df70f41e36 (patch) | |
tree | f6c6e12a0541233058a7f7ccb1251afeb457da06 /findutils | |
parent | 3cf56a021d7a62512b477640e930e1a78288075c (diff) | |
parent | d7d4750e1e213e7448147186dddfe3bfbb47eea0 (diff) | |
download | busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.tar.gz busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.tar.bz2 busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/grep.c | 8 |
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+"; |