aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-04 15:11:52 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-04 15:11:52 +0000
commit2db81ad13379b04e98ee4f1ef7c57f19af944339 (patch)
tree8aa4290757f512a93ca356ee8f77947c1145d7f6 /findutils/grep.c
parent455b90da00aa1af7bbc56d01d0b0ab433a44ab15 (diff)
downloadbusybox-w32-2db81ad13379b04e98ee4f1ef7c57f19af944339.tar.gz
busybox-w32-2db81ad13379b04e98ee4f1ef7c57f19af944339.tar.bz2
busybox-w32-2db81ad13379b04e98ee4f1ef7c57f19af944339.zip
Fixed -qv interaction (thanks to a report and patch from David Douthitt).
git-svn-id: svn://busybox.net/trunk/busybox@1534 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 83336613e..69195bfdc 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -85,6 +85,11 @@ static void grep_file(FILE *file)
85 85
86 } 86 }
87 else if (ret == REG_NOMATCH && invert_search) { 87 else if (ret == REG_NOMATCH && invert_search) {
88 if (be_quiet) {
89 regfree(&regex);
90 exit(0);
91 }
92
88 nmatches++; 93 nmatches++;
89 print_matched_line(line, linenum); 94 print_matched_line(line, linenum);
90 } 95 }