aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findutils/grep.c4
-rw-r--r--grep.c4
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)
165 if ((argc-1) - (optind+1) > 0) 165 if ((argc-1) - (optind+1) > 0)
166 print_filename++; 166 print_filename++;
167 167
168 /* If no files were specified, take input from stdin. Otherwise, we grep 168 /* If no files were specified, or '-' was specified, take input from
169 * through all the files specified. */ 169 * stdin. Otherwise, we grep through all the files specified. */
170 if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) { 170 if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) {
171 grep_file(stdin); 171 grep_file(stdin);
172 } else { 172 } 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)
165 if ((argc-1) - (optind+1) > 0) 165 if ((argc-1) - (optind+1) > 0)
166 print_filename++; 166 print_filename++;
167 167
168 /* If no files were specified, take input from stdin. Otherwise, we grep 168 /* If no files were specified, or '-' was specified, take input from
169 * through all the files specified. */ 169 * stdin. Otherwise, we grep through all the files specified. */
170 if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) { 170 if (argv[optind+1] == NULL || (strcmp(argv[optind+1], "-") == 0)) {
171 grep_file(stdin); 171 grep_file(stdin);
172 } else { 172 } else {