On Thu, Oct 24 2013 21:38:30 +0100, Jason McIntyre wrote:
> -A goes before -a in SYNOPSIS, the option list, and usage().
> jmc

Thanks. Attached an updated patch where this is fixed.

-- 
Lauri Tirkkonen | +358 50 5341376 | lotheac @ IRCnet
? bin/ps/ps
? bin/ps/ps.1.manlint
Index: bin/ps/ps.1
===================================================================
RCS file: /cvs/src/bin/ps/ps.1,v
retrieving revision 1.83
diff -u -r1.83 ps.1
--- bin/ps/ps.1 2 Aug 2012 03:18:48 -0000       1.83
+++ bin/ps/ps.1 24 Oct 2013 21:50:13 -0000
@@ -39,7 +39,7 @@
 .Sh SYNOPSIS
 .Nm ps
 .Sm off
-.Op Fl aCceHhjkLlmrSTuvwx
+.Op Fl AaCceHhjkLlmrSTuvwx
 .Sm on
 .Op Fl M Ar core
 .Op Fl N Ar system
@@ -71,6 +71,9 @@
 .Pp
 The options are as follows:
 .Bl -tag -width Ds
+.It Fl A
+Display information about all processes, including those without controlling
+terminals.
 .It Fl a
 Display information about other users' processes as well as your own.
 .It Fl C
Index: bin/ps/ps.c
===================================================================
RCS file: /cvs/src/bin/ps/ps.c,v
retrieving revision 1.55
diff -u -r1.55 ps.c
--- bin/ps/ps.c 21 Apr 2012 03:14:50 -0000      1.55
+++ bin/ps/ps.c 24 Oct 2013 21:50:13 -0000
@@ -116,11 +116,15 @@
        ttydev = NODEV;
        memf = nlistf = swapf = NULL;
        while ((ch = getopt(argc, argv,
-           "acCegHhjkLlM:mN:O:o:p:rSTt:U:uvW:wx")) != -1)
+           "AacCegHhjkLlM:mN:O:o:p:rSTt:U:uvW:wx")) != -1)
                switch (ch) {
                case 'a':
                        all = 1;
                        break;
+               case 'A':
+                       all = 1;
+                       xflg = 1;
+                       break;
                case 'c':
                        commandonly = 1;
                        break;
@@ -462,7 +466,7 @@
 usage(void)
 {
        (void)fprintf(stderr,
-           "usage: %s [-aCceHhjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o 
fmt] [-p pid]\n",
+           "usage: %s [-AaCceHhjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] 
[-o fmt] [-p pid]\n",
            __progname);        
        (void)fprintf(stderr,
            "%-*s[-t tty] [-U username] [-W swap]\n", (int)strlen(__progname) + 
8, "");

Reply via email to