From 2e1148b2393b1bcb72804a0c0de1408ca02a0189 Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Wed, 28 Jun 2000 22:59:30 +0000 Subject: [PATCH] Fixed comment. --- findutils/grep.c | 4 ++-- grep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/findutils/grep.c b/findutils/grep.c index ac55f19d1..a2e2ff813 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -165,8 +165,8 @@ extern int grep_main(int argc, char **argv) if ((argc-1) - (optind+1) > 0) print_filename++; - /* If no files were specified, take input from stdin. Otherwise, we grep - * through all the files specified. */ + /* If no files were specified, or '-' was specified, take input from + * stdin. Otherwise, we grep through all the files specified. */ if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) { grep_file(stdin); } else { diff --git a/grep.c b/grep.c index ac55f19d1..a2e2ff813 100644 --- a/grep.c +++ b/grep.c @@ -165,8 +165,8 @@ extern int grep_main(int argc, char **argv) if ((argc-1) - (optind+1) > 0) print_filename++; - /* If no files were specified, take input from stdin. Otherwise, we grep - * through all the files specified. */ + /* If no files were specified, or '-' was specified, take input from + * stdin. Otherwise, we grep through all the files specified. */ if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) { grep_file(stdin); } else {