Fixed comment.

This commit is contained in:
Mark Whitley 2000-06-28 22:59:30 +00:00
parent 8bd891cbec
commit 2e1148b239
2 changed files with 4 additions and 4 deletions

View 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 {

4
grep.c
View 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 {