equalizing a few error messages and polishing some man pages
Subsystems (2)
PATCH 1/1 equalizing a few error messages and polishing some man pages
Hi,
Attached bunch of patches mainly tweak the formatting and wording of several man pages that were (more or less) recently modified.
The first patch, though, makes a few error messages exactly equal to some other, already existing, ones -- so this does not invalidate any translations. The second patch removes a duplicate --help from the help text of lsblk, and better alphabetizes the other options. Also this does not invalidate any translations.
The fourth patch removes a strange, illegitimate hybrid of the -F and -w options from the man page of last.
The fifth patch slightly improves the spelling and grammar of the 2.24 ReleaseNotes, and mentions only those PO files which were actually updated during this cycle. Karel, judging from the rc2 announcement, you have a more recent version of this file. If you wish me to resolve any conflicts, please push your version.
Last year Sami removed the formatting from the Synopsis of getopt, but did this incompletely (the last 'parameters' is still italicized). But, more importantly, the second paragraph of the Description and the first paragraph of Parsing still refer to the formatted version of the Synopsis. So the eleventh patch brings this formatting back, also because in my opinion it looks better. It makes some other small adjustments too.
Regards,
Benno
Signature · 1 line
http://www.fastmail.fm - Same, same, but different...
From de38dc8604beaa08125b3664f4ad715913af7f3c Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Fri, 11 Oct 2013 15:52:07 +0200
Subject: [PATCH 01/11] textual: equalize four error messages with already existing ones
--- disk-utils/fsck.c | 2 +- libfdisk/src/dos.c | 4 ++-- libfdisk/src/gpt.c | 4 ++-- libfdisk/src/sgi.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
disk-utils/fsck.c +1 -1
@@ -713,7 +713,7 @@ static struct fsck_instance *wait_one(int flags)warnx (_ ("wait: no more child process?!?" ));return NULL ; } -warn (_ ("waidpid failed" )); +warn (_ ("waitpid failed" ));continue ; } for (prev = 0, inst = instance_list;
libfdisk/src/dos.c +2 -2
@@ -808,8 +808,8 @@ static int add_partition(struct fdisk_context *cxt, int n, struct fdisk_parttype sys = t ? t->type :MBR_LINUX_DATA_PARTITION ;if (p && p->sys_ind) { -fdisk_warnx (cxt,_ ("Partition %d is already defined. Delete " -"it before re-adding it." ), n +1 ); +fdisk_warnx (cxt,_ ("Partition %zd is already defined. " +"Delete it before re-adding it." ), n +1 );return -EINVAL ; }fill_bounds (cxt, first, last);
libfdisk/src/gpt.c +2 -2
@@ -1658,8 +1658,8 @@ static int gpt_add_partition( ents = gpt->ents;if (!partition_unused (&ents[partnum])) { -fdisk_warnx (cxt,_ ("Partition %zd is already defined. " -"Delete it before re-adding it." ), partnum +1 ); +fdisk_warnx (cxt,_ ("Partition %zd is already defined. " +"Delete it before re-adding it." ), partnum +1 );return -EINVAL ; } if (le32_to_cpu(pheader->npartition_entries) ==
libfdisk/src/sgi.c +1 -1
@@ -977,7 +977,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt) }else {/* otherwise print error and use truncated version */ fdisk_warnx (cxt, -_ ("Warning: BLKGETSIZE ioctl failed on %s. " +_ ("BLKGETSIZE ioctl failed on %s. " "Using geometry cylinder value of %llu. " "This value may be truncated for devices " "> 33.8 GB." ), cxt->dev_path, cxt->geom.cylinders);
Signature · 1 line
1.7.0.4
From 7039c9ff504a175b0d4e12ea8eebaff78b844496 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 11:17:19 +0200
Subject: [PATCH 02/11] textual: remove duplicate mention of '--help' from lsblk help text
Also improve the alphabetization of the other options.
--- misc-utils/lsblk.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
misc-utils/lsblk.c +3 -4
@@ -1371,20 +1371,19 @@ static void __attribute__((__noreturn__)) help(FILE *out)fputs (_ (" -d, --nodeps don't print slaves or holders\n" ), out);fputs (_ (" -D, --discard print discard capabilities\n" ), out);fputs (_ (" -e, --exclude <list> exclude devices by major number (default: RAM disks)\n" ), out); -fputs (_ (" -I, --include <list> show only devices with specified major numbers\n" ), out);fputs (_ (" -f, --fs output info about filesystems\n" ), out); -fputs (_ (" -h, --help usage information (this)\n" ), out);fputs (_ (" -i, --ascii use ascii characters only\n" ), out); -fputs (_ (" -m, --perms output info about permissions\n" ), out); +fputs (_ (" -I, --include <list> show only devices with specified major numbers\n" ), out);fputs (_ (" -l, --list use list format output\n" ), out); +fputs (_ (" -m, --perms output info about permissions\n" ), out);fputs (_ (" -n, --noheadings don't print headings\n" ), out);fputs (_ (" -o, --output <list> output columns\n" ), out);fputs (_ (" -p, --paths print complete device path\n" ), out);fputs (_ (" -P, --pairs use key=\"value\" output format\n" ), out);fputs (_ (" -r, --raw use raw output format\n" ), out);fputs (_ (" -s, --inverse inverse dependencies\n" ), out); -fputs (_ (" -t, --topology output info about topology\n" ), out);fputs (_ (" -S, --scsi output info about SCSI devices\n" ), out); +fputs (_ (" -t, --topology output info about topology\n" ), out);fputs (USAGE_SEPARATOR , out);fputs (USAGE_HELP , out);fputs (USAGE_VERSION , out);
Signature · 1 line
1.7.0.4
From e48e6631c7a76101fcb61d6b8cccd1391e6e23cc Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 18:43:29 +0200
Subject: [PATCH 03/11] docs: tweak wording, grammar and formatting of fdisk man page
--- fdisks/fdisk.8 | 103 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 53 insertions(+), 50 deletions(-)
fdisks/fdisk.8 +53 -50
216 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From 6ee79839ec040a83c51d04f6ea20ac86fccd3c07 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 19:49:11 +0200
Subject: [PATCH 04/11] last: remove mistaken -F, --fullnames entry from the man page
--- login-utils/last.1 | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
login-utils/last.1 +0 -3
@@ -143,9 +143,6 @@ For non-local logins, Linux stores not only the host name of the remote host but its IP number as well. This option translates the IP number back into a hostname. .TP -\fB\-F\fR, \fB\-\-fullnames\fR -Print full login and logout times and dates. -.TP \fB\-i\fR, \fB\-\-ip\fR This option is like .B \-\-dns
Signature · 1 line
1.7.0.4
From 53c1d48cd2976095b1d6f64553f582005f4b8a2f Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 20:30:01 +0200
Subject: [PATCH 05/11] docs: mention in ReleaseNotes only PO files that were actually updated
Also tweak wording a bit and remove a duplicate line.
--- Documentation/releases/v2.24-ReleaseNotes | 43 +++++++--------------------- 1 files changed, 11 insertions(+), 32 deletions(-)
Documentation/releases/v2.24-ReleaseNotes +11 -31
93 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From 2f0c3a246d2ad9ddbd045bbf606962a5df93b1ab Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 21:49:42 +0200
Subject: [PATCH 06/11] docs: tweak wording and formatting of last man page
--- login-utils/last.1 | 38 +++++++++++++++++--------------------- 1 files changed, 17 insertions(+), 21 deletions(-)
login-utils/last.1 +17 -21
@@ -20,13 +20,13 @@ last, lastb \- show listing of last logged in users .SH SYNOPSIS .B last .RI [ options ] -.RI [ username... ] -.RI [ tty... ] +.RI [ username ...] +.RI [ tty ...] .br .B lastb .RI [ options ] -.RI [ username... ] -.RI [ tty... ] +.RI [ username ...] +.RI [ tty ...] .SH DESCRIPTION .B last searches back through the file
@@ -34,22 +34,18 @@ searches back through the file (or the file designated by the .B \-f option) and displays a list of all users logged in (and out) since that -file was created. -.I Names -of users and -.IR tty 's +file was created. One or more +.IR usernames " and/or " ttys can be given, in which case .B last -will show only those entries matching the arguments. Names of +will show only the entries matching those arguments. Names of .I ttys can be abbreviated, thus .B last 0 is the same as .BR "last tty0" . .PP -When -.B last -catches a \s-2SIGINT\s0 signal (generated by the interrupt key, usually +When catching a \s-2SIGINT\s0 signal (generated by the interrupt key, usually control-C) or a \s-2SIGQUIT\s0 signal, .B last will show how far it has searched through the file; in the case of the
@@ -74,11 +70,11 @@ which contains all the bad login attempts. \fB\-f\fR, \fB\-\-file\fR \fIfile\fR Tell .B last -to use a specific file instead of +to use a specific \fIfile\fR instead of .BR /var/log/wtmp . The -.BI \-\-file " file" -can be specified multiple times, and all of the defined files will be +.B \-\-file +option can be given multiple times, and all of the specified files will be processed. .TP \fB\-\fInumber\fR
@@ -100,10 +96,10 @@ Display the state of logins until the specified .IR time . .TP \fB\-p\fR, \fB\-\-present\fR \fItime\fR -Display users who were present at the specified time. This option is -similar with -.BR \-\-since " and " \-\-until , -without printing any other lines than the matching sessions. +Display the users who were present at the specified time. This is +like using the options +.BR \-\-since " and " \-\-until +together with the same \fItime\fR. .TP \fB\-\-time\-format\fR \fIformat\fR Define output timestamp
@@ -155,9 +151,9 @@ Display full user and domain names in the output. \fB\-x\fR, \fB\-\-system\fR Display the system shutdown entries and run level changes. .SH TIME FORMATS -The options that take +The options that take the .I time -argument will understand the following formats: +argument understand the following formats: .TS left l2 l. YYYYMMDDhhmmss
Signature · 1 line
1.7.0.4
From 5ad2b973047c7d00717d32d717baf50a69a07267 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 22:33:59 +0200
Subject: [PATCH 07/11] docs: sort options in last man page alphabetically
And use the option formatting with macros.
--- login-utils/last.1 | 90 ++++++++++++++++++++++++++-------------------------- 1 files changed, 45 insertions(+), 45 deletions(-)
login-utils/last.1 +45 -45
137 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From e240d7e63f019722ec1bb059aa22e8a5e9eb8a1d Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sat, 12 Oct 2013 23:18:29 +0200
Subject: [PATCH 08/11] docs: improve grammar, wording and formatting of su man page
--- login-utils/su.1 | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-)
login-utils/su.1 +25 -24
134 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From 1cbff1a8a374d2620c17b6487b43b15ae2d80ec2 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sun, 13 Oct 2013 12:54:58 +0200
Subject: [PATCH 09/11] docs: improve a bit the wording on the logger man page
--- misc-utils/logger.1 | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-)
misc-utils/logger.1 +13 -13
@@ -38,7 +38,7 @@ logger \- a shell command interface to the syslog(3) system log module .SH SYNOPSIS .B logger -[options] [message] +.RI [ options "] [" message ] .SH DESCRIPTION .B logger makes entries in the system log. It provides a shell command
@@ -54,17 +54,17 @@ instead of to the builtin syslog routines. Unless .B \-\-udp or .B \-\-tcp -is specified the logger will first try to use UDP, but if it fails a TCP -connection is attempted. +is specified, \fBlogger\fR will first try to use UDP, +but if thist fails a TCP connection is attempted. .TP \fB\-d\fR, \fB\-\-udp\fR -Use datagram (UDP) only. By default the connection is tried to +Use datagram (UDP) only. By default the connection is tried to the .I syslog port defined in /etc/services, which is often .IR 514 . .TP \fB\-T\fR, \fB\-\-tcp\fR -Use stream (TCP) only. By default the connection is tried to +Use stream (TCP) only. By default the connection is tried to the .I syslog-conn port defined in /etc/services, which is often .IR 601 .
@@ -110,15 +110,15 @@ Write to the specified instead of to the builtin syslog routines. .TP \fB\-\-prio\-prefix\fR -Look for a syslog prefix on every line read from standard input, a -number contained within angle brackets that contain both the facility -and level. The decimal prefix is constructed by multiplying the -facility by 8 and then adding the level, thus \fIlocal0.info\fR, +Look for a syslog prefix on every line read from standard input. +This prefix is a number within angle brackets that contains both the facility +and the level. This decimal prefix is constructed by multiplying the +facility by 8 and then adding the level. Thus, for example, \fIlocal0.info\fR, facility=16 and level=6, becomes \fI<134>\fR. If the prefix contains no facility, the facility defaults to what is -specified by \fB\-p\fR option, similarly if no prefix is provided the -line is logged using the \fB\-p\fR \fIpriority\fR. +specified by the \fB\-p\fR option. Similarly, if no prefix is provided, +the line is logged using the \fB\-p\fR \fIpriority\fR. This option doesn't affect a command-line message. .TP
@@ -131,8 +131,8 @@ End the argument list. This is to allow the to start with a hyphen (\-). .TP .I message -Write the message to log; if not specified, and the -.I \-f +Write this \fImessage\fR to the log; if not specified, and the +.B \-f flag is not provided, standard input is logged. .PP The
Signature · 1 line
1.7.0.4
From 4e6904d74025da040b6ca013d075a5af3a2cead9 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sun, 13 Oct 2013 21:01:07 +0200
Subject: [PATCH 10/11] docs: sort the options in the logger man page alphabetically
--- misc-utils/logger.1 | 62 +++++++++++++++++++++++++------------------------- 1 files changed, 31 insertions(+), 31 deletions(-)
misc-utils/logger.1 +31 -31
94 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From 4a6e534b0be8de65734ab3c889400f2b76490e6d Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sun, 13 Oct 2013 21:52:07 +0200
Subject: [PATCH 11/11] docs: improve formatting and wording of the getopt man page
--- misc-utils/getopt.1 | 53 ++++++++++++++++++++++++++++++-------------------- 1 files changed, 32 insertions(+), 21 deletions(-)
misc-utils/getopt.1 +32 -21
109 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Quoted 5 lines · Benno Schulenberg
The fifth patch slightly improves the spelling and grammar of the 2.24 ReleaseNotes, and mentions only those PO files which were actually updated during this cycle. Karel, judging from the rc2 announcement, you have a more recent version of this file. If you wish me to resolve any conflicts, please push your version.
The problem is that the details in the ReleaseNotes are generated from git log, so I have applied only begin of the patch (release highlights).
It seems that I have applied non-updated .po stuff for some languages during work on the release. It's no problem, but it's visible in the log.
(And note that I also use po files from stable (e.g. 2.23.2) releases
for the next release -rc1.)
Applied, thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com