commit eca23e530811ea85bf17aeb1505a0a6e7ce17ea7
parent 68ccf5c0eba0fbcf082d0565e0e65cad114cad3f
Author: sin <sin@2f30.org>
Date: Thu, 5 Mar 2015 08:13:42 +0000
tail: Add -num to usage and fix manpage to align with head.1
Diffstat:
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/tail.1 b/tail.1
@@ -1,4 +1,4 @@
-.Dd February 9, 2015
+.Dd March 5, 2015
.Dt TAIL 1
.Os sbase
.Sh NAME
@@ -7,7 +7,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl f
-.Op Fl c Ar num | Fl n Ar num | Fl N
+.Op Fl c Ar num | Fl n Ar num | Fl Ns Ar num
.Op Ar file ...
.Sh DESCRIPTION
.Nm
@@ -20,11 +20,10 @@ is given,
reads from stdin.
.Sh OPTIONS
.Bl -tag -width Ds
-.It Fl c Ar num | Fl n Ar num | Fl N
+.It Fl c Ar num | Fl n Ar num | Fl Ns Ar num
Display final
.Ar num
characters | lines |
-.Ar N
lines. If
.Ar num
begins with '+'
@@ -49,6 +48,6 @@ utility is compliant with the
.St -p1003.1-2008
specification.
.Pp
-The
-.Op Fl N
-flag is an extension to that specification.
+The obsolete
+.Op Fl Ns Ar num
+syntax is an extension to that specification.
diff --git a/tail.c b/tail.c
@@ -74,7 +74,7 @@ taketail(FILE *fp, const char *str)
static void
usage(void)
{
- eprintf("usage: %s [-f] [-c num | -n num] [file ...]\n", argv0);
+ eprintf("usage: %s [-f] [-c num | -n num | -num] [file ...]\n", argv0);
}
int