mirror of
https://git.busybox.net/busybox.git
synced 2024-11-24 22:23:25 +08:00
Fixed -qv interaction (thanks to a report and patch from David Douthitt).
This commit is contained in:
parent
09acc06c10
commit
0810f723b1
@ -85,6 +85,11 @@ static void grep_file(FILE *file)
|
||||
|
||||
}
|
||||
else if (ret == REG_NOMATCH && invert_search) {
|
||||
if (be_quiet) {
|
||||
regfree(®ex);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
nmatches++;
|
||||
print_matched_line(line, linenum);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user