Benno Schulenberg wrote:
> The texts from 'who --help' and 'info who' say different things.
> The latter does not mention the options -p, -r and -t.

Oops, I was looking at 6.12. instead of git.  Git does mention -p, 
-r and -t, but out of order.  Attached patch puts them in their 
alphabetical positions, and removes the duplication of -H.

Benno
>From 7bc5c976f966d220aa77c89f2d2d8bfffcdfefcf Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[EMAIL PROTECTED]>
Date: Tue, 2 Sep 2008 21:40:52 +0200
Subject: [PATCH] doc: order the options of 'who' alphabetically

---
 doc/coreutils.texi |   50 ++++++++++++++++++++++----------------------------
 1 files changed, 22 insertions(+), 28 deletions(-)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 3a04176..4e6e2bc 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -12711,29 +12711,7 @@ Print information corresponding to dead processes.
 @itemx --heading
 @opindex -H
 @opindex --heading
-Print column headings.
-
[EMAIL PROTECTED] -m
[EMAIL PROTECTED] -m
-Same as @samp{who am i}.
-
[EMAIL PROTECTED] -q
[EMAIL PROTECTED] --count
[EMAIL PROTECTED] -q
[EMAIL PROTECTED] --count
-Print only the login names and the number of users logged on.
-Overrides all other options.
-
[EMAIL PROTECTED] -s
[EMAIL PROTECTED] -s
-Ignored; for compatibility with other versions of @command{who}.
-
[EMAIL PROTECTED] -u
[EMAIL PROTECTED] -u
[EMAIL PROTECTED] idle time
-After the login time, print the number of hours and minutes that the
-user has been idle.  @samp{.} means the user was active in the last minute.
[EMAIL PROTECTED] means the user has been idle for more than 24 hours.
+Print a line of column headings.
 
 @item -l
 @itemx --login
@@ -12748,11 +12726,9 @@ Attempt to canonicalize hostnames found in utmp through a DNS lookup.  This
 is not the default because it can cause significant delays on systems with
 automatic dial-up internet access.
 
[EMAIL PROTECTED] -H
[EMAIL PROTECTED] --heading
[EMAIL PROTECTED] -H
[EMAIL PROTECTED] --heading
-Print a line of column headings.
[EMAIL PROTECTED] -m
[EMAIL PROTECTED] -m
+Same as @samp{who am i}.
 
 @item -p
 @itemx --process
@@ -12760,18 +12736,36 @@ Print a line of column headings.
 @opindex --process
 List active processes spawned by init.
 
[EMAIL PROTECTED] -q
[EMAIL PROTECTED] --count
[EMAIL PROTECTED] -q
[EMAIL PROTECTED] --count
+Print only the login names and the number of users logged on.
+Overrides all other options.
+
 @item -r
 @itemx --runlevel
 @opindex -r
 @opindex --runlevel
 Print the current (and maybe previous) run-level of the init process.
 
[EMAIL PROTECTED] -s
[EMAIL PROTECTED] -s
+Ignored; for compatibility with other versions of @command{who}.
+
 @item -t
 @itemx --time
 @opindex -t
 @opindex --time
 Print last system clock change.
 
[EMAIL PROTECTED] -u
[EMAIL PROTECTED] -u
[EMAIL PROTECTED] idle time
+After the login time, print the number of hours and minutes that the
+user has been idle.  @samp{.} means the user was active in the last minute.
[EMAIL PROTECTED] means the user has been idle for more than 24 hours.
+
 @item -w
 @itemx -T
 @itemx --mesg
-- 
1.5.6.4

_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to