From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 20 10:10:15 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0216537B401 for ; Sun, 20 Jul 2003 10:10:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90EAF43FA3 for ; Sun, 20 Jul 2003 10:10:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6KHAEUp062702 for ; Sun, 20 Jul 2003 10:10:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6KHAElr062701; Sun, 20 Jul 2003 10:10:14 -0700 (PDT) Date: Sun, 20 Jul 2003 10:10:14 -0700 (PDT) Message-Id: <200307201710.h6KHAElr062701@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Matthew D. Fuller" Subject: Re: misc/54661: Update last(1) to allow -n # in addition to -# for number of records X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Matthew D. Fuller" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 17:10:15 -0000 The following reply was made to PR misc/54661; it has been noted by GNATS. From: "Matthew D. Fuller" To: Larry Rosenman 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"