summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-25 11:57:34 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-25 15:12:35 +0000
commitbc1bf0fdc256e6243c1df067654b87d507adb84e (patch)
treef74eeb7dd987408b3d008f88b46702d56ea3cfe5 /src/tr.c
parent5595024a2fdd726d88d57c5a06b633b752ef31db (diff)
downloadcoreutils-bc1bf0fdc256e6243c1df067654b87d507adb84e.tar.xz
doc: clarify descriptions for tr --squeeze-repeats
* doc/coreutils.texi (uniq invocation): Fix the description of problematic input to say "blank lines" rather than "two or more blank lines". (tr invocation): Clarify that -s only works with SET1 when not translating (when SET2 not specified). Also explicitly state in examples where blank lines are deleted. Also add "deleting" to the menu item. * src/tr.c (usage): Improve the -s summary to say it always operates on the last specified SET.
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tr.c b/src/tr.c
index fe6f466bd..a1310a863 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -293,9 +293,9 @@ writing to standard output.\n\
\n\
-c, -C, --complement use the complement of SET1\n\
-d, --delete delete characters in SET1, do not translate\n\
- -s, --squeeze-repeats replace each input sequence of a repeated character\n\
- that is listed in SET1 with a single occurrence\n\
- of that character\n\
+ -s, --squeeze-repeats replace each sequence of a repeated character\n\
+ that is listed in the last specified SET,\n\
+ with a single occurrence of that character\n\
-t, --truncate-set1 first truncate SET1 to length of SET2\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
@@ -342,9 +342,8 @@ Translation occurs if -d is not given and both SET1 and SET2 appear.\n\
SET1 by repeating its last character as necessary. Excess characters\n\
of SET2 are ignored. Only [:lower:] and [:upper:] are guaranteed to\n\
expand in ascending order; used in SET2 while translating, they may\n\
-only be used in pairs to specify case conversion. -s uses SET1 if not\n\
-translating nor deleting; else squeezing uses SET2 and occurs after\n\
-translation or deletion.\n\
+only be used in pairs to specify case conversion. -s uses the last\n\
+specified SET, and occurs after translation or deletion.\n\
"), stdout);
emit_ancillary_info (PROGRAM_NAME);
}