Fixed comment.
authorMark Whitley <markw@lineo.com>
Wed, 28 Jun 2000 22:59:30 +0000 (22:59 -0000)
committerMark Whitley <markw@lineo.com>
Wed, 28 Jun 2000 22:59:30 +0000 (22:59 -0000)
findutils/grep.c
grep.c

index ac55f19d1f925ffb63eff5bef44b463e1622ae90..a2e2ff813e20e596e004e4fcd2c682a640e541a5 100644 (file)
@@ -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 ac55f19d1f925ffb63eff5bef44b463e1622ae90..a2e2ff813e20e596e004e4fcd2c682a640e541a5 100644 (file)
--- 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 {