#1012447 coreutils: tr: tr.1 (and tr --help) falsely claims -t is only valid when translating

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
наб
Date:
2022-06-19 12:27:09 UTC
Severity:
minor
#1012447#5
Date:
2022-06-07 12:41:23 UTC
From:
To:
Dear Maintainer,

The soup at the end of tr.1 (and tr --help) claims:
  -t may be used only when translating.

This is a very obvious lie:
  $ tr -tds abcd A
  aabbccddAA
  A

Of course, -t only changes anything when translating,
because heirloom tr uses separate tables for tr/-d/-s
and explicitly handles overlong set2 for squeezing,
but it can be specified whenever
(just doesn't do anything unless translating).

Best,
наб

#1012447#10
Date:
2022-06-19 12:22:32 UTC
From:
To:
Fair point.
Will address this upstream in the attached.

thanks,
Pádraig

#1012447#15
Date:
2022-06-19 12:22:32 UTC
From:
To:
Fair point.
Will address this upstream in the attached.

thanks,
Pádraig