diff options
| author | Paul Richards <paul@FreeBSD.org> | 2004-11-03 15:23:11 +0000 |
|---|---|---|
| committer | Paul Richards <paul@FreeBSD.org> | 2004-11-03 15:23:11 +0000 |
| commit | 4bba8e595ecc312b5dd9c73c8da1a636f896fce9 (patch) | |
| tree | 5f07f41ffc5b3603a08c3640429a79ee82fdc228 /usr.bin/tail/tail.c | |
| parent | b483f84d5519c615798d0a93fc8d88ffaaf70733 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tail/tail.c')
| -rw-r--r-- | usr.bin/tail/tail.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c index 2a3ee1365e74..8fa0ed6edda1 100644 --- a/usr.bin/tail/tail.c +++ b/usr.bin/tail/tail.c @@ -63,6 +63,8 @@ static const char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93"; int Fflag, fflag, rflag, rval; const char *fname; +int no_files; + static void obsolete(char **); static void usage(void); @@ -138,8 +140,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - if (fflag && argc > 1) - errx(1, "-f option only appropriate for a single file"); + no_files = argc; /* * If displaying in reverse, don't permit follow option, and convert @@ -168,6 +169,7 @@ main(int argc, char *argv[]) } } + printf("No files: %d\n", no_files); if (*argv) for (first = 1; (fname = *argv++);) { if ((fp = fopen(fname, "r")) == NULL || |
