summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-08-13 06:46:57 +0000
committercharnier <charnier@FreeBSD.org>1997-08-13 06:46:57 +0000
commitcf4900f7ab628fce03ec8656eaeada7d0925c9b4 (patch)
tree3a397b4c964fde50a75621e7c538c0a18d4d99b3 /usr.bin/tail
parentd1a307d129d105dee069f5755f92a715d49cccc7 (diff)
downloadFreeBSD-src-cf4900f7ab628fce03ec8656eaeada7d0925c9b4.zip
FreeBSD-src-cf4900f7ab628fce03ec8656eaeada7d0925c9b4.tar.gz
Remove trailing \n in warn() string.
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/reverse.c6
-rw-r--r--usr.bin/tail/tail.119
2 files changed, 15 insertions, 10 deletions
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c
index 0a07f4f..4b66f55 100644
--- a/usr.bin/tail/reverse.c
+++ b/usr.bin/tail/reverse.c
@@ -35,7 +35,11 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
@@ -224,7 +228,7 @@ r_buf(fp)
}
if (enomem) {
- warnx("warning: %ld bytes discarded\n", enomem);
+ warnx("warning: %ld bytes discarded", enomem);
rval = 1;
}
diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1
index 02bfba8..8c96737 100644
--- a/usr.bin/tail/tail.1
+++ b/usr.bin/tail/tail.1
@@ -41,17 +41,17 @@
.Nm tail
.Nd display the last part of a file
.Sh SYNOPSIS
-.Nm tail
+.Nm
.Op Fl f Li | Fl r
.Oo
.Fl b Ar number |
.Fl c Ar number |
.Fl n Ar number
.Oc
-.Op Ar file ...
+.Op Ar
.Sh DESCRIPTION
The
-.Nm tail
+.Nm
utility displays the contents of
.Ar file
or, by default, its standard input, to the standard output.
@@ -85,7 +85,7 @@ bytes.
The
.Fl f
option causes
-.Nm tail
+.Nm
to not stop when end of file is reached, but rather to wait for additional
data to be appended to the input.
The
@@ -123,7 +123,7 @@ where
is the name of the file.
.Pp
The
-.Nm tail
+.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr cat 1 ,
@@ -131,8 +131,9 @@ utility exits 0 on success, and >0 if an error occurs.
.Xr sed 1
.Sh STANDARDS
The
-.Nm tail
-utility is expected to be a superset of the POSIX 1003.2
+.Nm
+utility is expected to be a superset of the
+.St -p1003.2-92
specification.
In particular, the
.Fl b
@@ -141,7 +142,7 @@ and
options are extensions to that standard.
.Pp
The historic command line syntax of
-.Nm tail
+.Nm
is supported by this implementation.
The only difference between this implementation and historic versions
of
@@ -160,6 +161,6 @@ would ignore the
option and display the last 4 lines of the input.
.Sh HISTORY
A
-.Nm tail
+.Nm
command appeared in
.At v7 .
OpenPOWER on IntegriCloud