Index | Thread | Search

From:
Jan Stary <hans@stare.cz>
Subject:
tr(1) tweak
To:
tech@openbsd.org
Date:
Fri, 31 Jan 2025 18:37:42 +0100

Download raw body.

Thread
  • Jan Stary:

    tr(1) tweak

The following wording for tr -s
is IMHO a little bit clearer,
judging by the recent discusion on misc@

	Jan


--- tr.1.orig	Tue Jan 28 19:08:31 2025
+++ tr.1	Tue Jan 28 19:12:08 2025
@@ -80,15 +80,15 @@ The
 .Fl d
 option causes characters to be deleted from the input.
 .It Fl s
-The
+After all deletion and translation is completed,
+the
 .Fl s
-option squeezes multiple occurrences of the characters listed in the last
-operand (either
+option squeezes multiple consecutive occurrences of the characters
+listed in the last operand (either
 .Ar string1
 or
 .Ar string2 )
-in the input into a single instance of the character.
-This occurs after all deletion and translation is completed.
+into a single instance of the character.
 .El
 .Pp
 In the first synopsis form, the characters in