Package: hostname Version: 3.08 Severity: wishlist The following patch:
- Orders items alphabetically - Puts help option last (GNU's suggested convention) C.f. programs like cp(1), mv(1), ssh(1) etc. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.1.0-1-686-pae (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages hostname depends on: ii libc6 2.13-21 hostname recommends no packages. hostname suggests no packages. -- no debconf information
>From 4dc5cd381b3f65166c86c46cd3432e4364aa70d8 Mon Sep 17 00:00:00 2001 From: Jari Aalto <jari.aa...@cante.net> Date: Sun, 25 Dec 2011 18:50:51 +0200 Subject: [PATCH] hostname.1: (OPTIONS): Order items alphabetically Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto <jari.aa...@cante.net> --- hostname.1 | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hostname.1 b/hostname.1 index 025cf0c..c80dbd3 100644 --- a/hostname.1 +++ b/hostname.1 @@ -166,6 +166,15 @@ is subject to the same limitations so it should be avoided as well. Display the alias name of the host (if used). This option is deprecated and should not be used anymore. .TP +.I "\-A, \-\-all-fqdns" +Displays all FQDNs of the machine. This option enumerates all configured +network addresses on all configured network interfaces, and translates +them to DNS domain names. Addresses that cannot be translated (i.e. because +they do not have an appropriate reverse DNS entry) are skipped. Note that +different addresses may resolve to the same name, therefore the output may +contain duplicate entries. Do not make any assumptions about the order of the +output. +.TP .I "\-b, \-\-boot" Always set a hostname; this allows the file specified by \fI-F\fR to be non-existant or empty, in which case the default hostname \fIlocalhost\fR @@ -181,10 +190,6 @@ instead. Ssee the warnings in section .B "THE FQDN" above, and avoid using this option. .TP -.I "\-F, \-\-file filename" -Read the host name from the specified file. Comments (lines starting with -a `#') are ignored. -.TP .I "\-f, \-\-fqdn, \-\-long" Display the FQDN (Fully Qualified Domain Name). A FQDN consists of a short host name and the DNS domain name. Unless you are using bind or NIS @@ -195,17 +200,9 @@ above, and avoid using this option; use .BR "hostname \-\-all-fqdns" instead. .TP -.I "\-A, \-\-all-fqdns" -Displays all FQDNs of the machine. This option enumerates all configured -network addresses on all configured network interfaces, and translates -them to DNS domain names. Addresses that cannot be translated (i.e. because -they do not have an appropriate reverse DNS entry) are skipped. Note that -different addresses may resolve to the same name, therefore the output may -contain duplicate entries. Do not make any assumptions about the order of the -output. -.TP -.I "\-h, \-\-help" -Print a usage message and exit. +.I "\-F, \-\-file filename" +Read the host name from the specified file. Comments (lines starting with +a `#') are ignored. .TP .I "\-i, \-\-ip-address" Display the network address(es) of the host name. Note that this works only @@ -223,16 +220,19 @@ order of the output. .I "\-s, \-\-short" Display the short host name. This is the host name cut at the first dot. .TP -.I "\-V, \-\-version" -Print version information on standard output and exit successfully. -.TP .I "\-v, \-\-verbose" Be verbose and tell what's going on. .TP +.I "\-V, \-\-version" +Print version information on standard output and exit successfully. +.TP .I "\-y, \-\-yp, \-\-nis" Display the NIS domain name. If a parameter is given (or .B \-\-file name ) then root can also set a new NIS domain. +.TP +.I "\-h, \-\-help" +Print a usage message and exit. .SH NOTES The address families .B hostname -- 1.7.7.3