[Top][All Lists]

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

tr's doc nits

From: Alexandre Duret-Lutz
Subject: tr's doc nits
Date: Fri, 11 Nov 2005 14:47:12 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Hello there,

I have coreutils 5.2.1 and texinfo 4.8 installed.

Two notes regarding tr's documentation:

1) "man tr" points to "info coreutils tr" but this commands
   brings me to the node "Trailing slashes" not to "tr invocation".

2) Node "Character sets" of the tr documentation states that

     GNU `tr' does not support the System V syntax that uses square
     brackets to enclose ranges.  Translations specified in that format
     sometimes work as expected, since the brackets are often
     transliterated to themselves.  However, they should be avoided
     because they sometimes behave unexpectedly.  For example, `tr -d
     '[0-9]'' deletes brackets as well as digits.

   however node "Putting the tools together" teaches you bad habits
   with many examples such as 

     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
     > tr -s '[ ]' '\012' | ...

Alexandre Duret-Lutz

reply via email to

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