diff options
-rw-r--r-- | usr.bin/grep/grep.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 3cb277c..f531c56 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -681,15 +681,12 @@ main(int argc, char *argv[]) if (dirbehave == DIR_RECURSE) c = grep_tree(aargv); - else { - if (aargc == 1) - hflag = true; + else for (c = 0; aargc--; ++aargv) { if ((finclude || fexclude) && !file_matching(*aargv)) continue; c+= procfile(*aargv); } - } #ifndef WITHOUT_NLS catclose(catalog); |