coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] doc: improve tr --help


From: Josh Holland
Subject: [PATCH] doc: improve tr --help
Date: Fri, 22 Jan 2021 18:00:33 +0000

* src/tr.c (usage): Remove ungrammatical comma from documentation of
--squeeze-repeats option.  Explain that SET2 is only extended to the
length of SET1 when -t option is not given.
---
 src/tr.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/tr.c b/src/tr.c
index 801942203..98c23763b 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -295,7 +295,7 @@ writing to standard output.\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 sequence of a repeated character\n\
-                            that is listed in the last specified SET,\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);
@@ -339,12 +339,12 @@ Interpreted sequences are:\n\
      fputs (_("\
 \n\
 Translation occurs if -d is not given and both SET1 and SET2 appear.\n\
--t may be used only when translating.  SET2 is extended to length of\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 the last\n\
-specified SET, and occurs after translation or deletion.\n\
+-t may be used only when translating.  If -t is not given, SET2 is\n\
+extended to length of SET1 by repeating its last character as necessary.\n\
+Excess characters of SET2 are ignored.  Only [:lower:] and [:upper:] are\n\
+guaranteed to expand in ascending order; used in SET2 while translating,\n\
+they may only be used in pairs to specify case conversion.  -s uses the\n\
+last specified SET, and occurs after translation or deletion.\n\
 "), stdout);
       emit_ancillary_info (PROGRAM_NAME);
     }
-- 
2.30.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]