Cosmetic in usage string.
This commit is contained in:
parent
e94493547b
commit
342548bf0f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27571
@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" From: @(#)lastcomm.1 8.1 (Berkeley) 6/6/93
|
||||
.\" $Id$
|
||||
.\" $Id: lastcomm.1,v 1.5 1997/02/22 19:55:32 peter Exp $
|
||||
.\"
|
||||
.Dd September 18, 1996
|
||||
.Dt LASTCOMM 1
|
||||
@ -39,7 +39,7 @@
|
||||
.Nm lastcomm
|
||||
.Nd show last commands executed in reverse order
|
||||
.Sh SYNOPSIS
|
||||
.Nm lastcomm
|
||||
.Nm
|
||||
.Op Fl EScesu
|
||||
.Op Fl f Ar file
|
||||
.Op Ar command ...
|
||||
@ -49,7 +49,7 @@
|
||||
.Nm Lastcomm
|
||||
gives information on previously executed commands.
|
||||
With no arguments,
|
||||
.Nm lastcomm
|
||||
.Nm
|
||||
prints information about all the commands recorded
|
||||
during the current accounting file's lifetime.
|
||||
.Pp
|
||||
@ -151,6 +151,6 @@ Default accounting file.
|
||||
.Xr core 5
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm lastcomm
|
||||
.Nm
|
||||
command appeared in
|
||||
.Bx 3.0 .
|
||||
|
@ -29,8 +29,6 @@
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lastcomm.c,v 1.7 1997/03/29 04:30:24 imp Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -40,7 +38,11 @@ static char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)lastcomm.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -62,7 +64,7 @@ time_t expand __P((u_int));
|
||||
char *flagbits __P((int));
|
||||
char *getdev __P((dev_t));
|
||||
int requested __P((char *[], struct acct *));
|
||||
void usage __P((void));
|
||||
static void usage __P((void));
|
||||
char *user_from_uid();
|
||||
|
||||
#define AC_UTIME 1 /* user */
|
||||
@ -291,10 +293,10 @@ getdev(dev)
|
||||
return (lastname);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
|
||||
"usage: lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user