From 684eb8f09fa41c4958e6a3d90f03c981eb458e0b Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 12 Sep 1997 02:26:12 +0000 Subject: Document newly added -d option and fix usage string --- usr.bin/w/w.1 | 7 +++++-- usr.bin/w/w.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/w/w.1 b/usr.bin/w/w.1 index 64c5b60..83508df 100644 --- a/usr.bin/w/w.1 +++ b/usr.bin/w/w.1 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)w.1 8.1 (Berkeley) 6/6/93 -.\" $Id: w.1,v 1.6 1997/02/22 19:57:41 peter Exp $ +.\" $Id: w.1,v 1.7 1997/08/25 06:42:19 charnier Exp $ .\" .Dd June 6, 1993 .Dt W 1 @@ -40,7 +40,7 @@ .Nd who present users are and what they are doing .Sh SYNOPSIS .Nm w -.Op Fl hin +.Op Fl dhin .Op Fl M Ar core .Op Fl N Ar system .Op Ar user @@ -62,6 +62,9 @@ and the name and arguments of the current process. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl d +dumps out the entire process list on a per controlling +tty basis, instead of just the top level process. .It Fl h Suppress the heading. .It Fl i diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 61de1ef..6313786 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94"; #endif static const char rcsid[] = - "$Id: w.c,v 1.21 1997/08/25 06:42:19 charnier Exp $"; + "$Id: w.c,v 1.22 1997/09/12 02:22:21 ache Exp $"; #endif /* not lint */ /* @@ -484,7 +484,7 @@ usage(wcmd) { if (wcmd) (void)fprintf(stderr, - "usage: w [-hin] [-M core] [-N system] [user]\n"); + "usage: w [-dhin] [-M core] [-N system] [user]\n"); else (void)fprintf(stderr, "usage: uptime\n"); -- cgit v1.1