grep: don't print (standard input) when input is implicitly stdin
This commit is contained in:
parent
745bc29a26
commit
d600d3d393
@ -290,7 +290,7 @@ int main(int argc, char ** argv) {
|
|||||||
optind++;
|
optind++;
|
||||||
|
|
||||||
|
|
||||||
int showFilenames = (optind + 1 != argc);
|
int showFilenames = (optind + 1 < argc);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
FILE * input = stdin;
|
FILE * input = stdin;
|
||||||
|
Loading…
Reference in New Issue
Block a user