Remove trailing \n in warn() string.
This commit is contained in:
parent
d8793dfac3
commit
ea7cc4954d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28150
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user