Date: Sun, 20 Jul 2003 10:10:14 -0700 (PDT) From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/54661: Update last(1) to allow -n # in addition to -# for number of records Message-ID: <200307201710.h6KHAElr062701@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/54661; it has been noted by GNATS. From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: Larry Rosenman <ler@lerctr.org> Cc: FreeBSD-gnats-submit@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 .Sh SYNOPSIS .Nm -.Op Fl Ns Ar n +.Op Fl Ns Ar # +.Op Fl n Ar # .Op Fl y .Oo .Fl d @@ -78,9 +79,12 @@ .Pp The following options are available: .Bl -tag -width indent-two -.It Fl Ar n +.It Xo +.Fl Ar # , +.Fl n Ar # +.Xc Limit the report to -.Ar n +.Ar # lines. .It Fl d Ar date Specify the snapshot date and time. -- Matthew Fuller (MF4839) | fullermd@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307201710.h6KHAElr062701>