From ea7cc4954d793dd3a70bb4272b1033094bf194c8 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 13 Aug 1997 06:46:57 +0000 Subject: [PATCH] Remove trailing \n in warn() string. --- usr.bin/tail/reverse.c | 6 +++++- usr.bin/tail/tail.1 | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index 0a07f4f1bdcb..4b66f5541dd8 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 @@ -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 02bfba8a7429..8c967372946b 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 .