misc/54661: Update last(1) to allow -n # in addition to -# for number of records

Matthew D. Fuller fullermd at over-yonder.net
Sun Jul 20 10:10:15 PDT 2003

The following reply was made to PR misc/54661; it has been noted by GNATS.

From: "Matthew D. Fuller" <fullermd at over-yonder.net>
To: Larry Rosenman <ler at lerctr.org>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: misc/54661: Update last(1) to allow -n # in addition to -# for number of records
Date: Sun, 20 Jul 2003 12:08:24 -0500

 On Sun, Jul 20, 2003 at 11:37:33AM -0500 I heard the voice of
 Larry Rosenman, and lo! it spake thus:
 > >Description:
 > My UnixWare (System V Release 5) system allows -n # to be used for
 > the last command, and I find it annoying that the FreeBSD version
 > doesn't accept this. 
 > The Patch below will allow both. 
 > Unfortunately, I'm not a mdoc person, so I did NOT do a man page
 > patch, as I'm not familiar enough with it.  If a doc person could
 > point me to the appropriate doc, or make the change, I'd appreciate it.
 Try this:
 Index: last.1
 RCS file: /usr/cvs/src/usr.bin/last/last.1,v
 retrieving revision 1.14
 diff -u -r1.14 last.1
 --- last.1	21 Jul 2002 12:45:54 -0000	1.14
 +++ last.1	20 Jul 2003 17:07:10 -0000
 @@ -40,7 +40,8 @@
  .Nd indicate last logins of users and ttys
 -.Op Fl Ns Ar n
 +.Op Fl Ns Ar #
 +.Op Fl n Ar #
  .Op Fl y
  .Fl d
 @@ -78,9 +79,12 @@
  The following options are available:
  .Bl -tag -width indent-two
 -.It Fl Ar n
 +.It Xo
 +.Fl Ar # ,
 +.Fl n Ar #
  Limit the report to
 -.Ar n
 +.Ar #
  .It Fl d Ar date
  Specify the snapshot date and time.
 Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
 Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
 "The only reason I'm burning my candle at both ends, is because I
       haven't figured out how to light the middle yet"

More information about the freebsd-bugs mailing list