grep: don't print (standard input) when input is implicitly stdin

This commit is contained in:
K. Lange 2022-08-18 17:14:03 +09:00
parent 745bc29a26
commit d600d3d393

View File

@ -290,7 +290,7 @@ int main(int argc, char ** argv) {
optind++;
int showFilenames = (optind + 1 != argc);
int showFilenames = (optind + 1 < argc);
do {
FILE * input = stdin;