NetBSD-Docs archive

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

Inconsistency between [:lower:] and [:upper:] in tr(1)



Hi!

When reading through tr(1), I noticed the following inconsistency:
-- >8 --
Index: tr.1
===================================================================
RCS file: /cvsroot/src/usr.bin/tr/tr.1,v
retrieving revision 1.23
diff -u -1 -0 -r1.23 tr.1
--- tr.1	29 May 2019 11:27:34 -0000	1.23
+++ tr.1	13 Jun 2021 11:03:49 -0000
@@ -163,21 +163,21 @@
 .It alnum	<alphanumeric characters>
 .It alpha	<alphabetic characters>
 .It blank	<blank characters>
 .It cntrl	<control characters>
 .It digit	<numeric characters>
 .It graph	<graphic characters>
 .It lower	<lower-case alphabetic characters>
 .It print	<printable characters>
 .It punct	<punctuation characters>
 .It space	<space characters>
-.It upper	<upper-case characters>
+.It upper	<upper-case alphabetic characters>
 .It xdigit	<hexadecimal characters>
 .El
 .Pp
 .\" All classes may be used in
 .\" .Ar string1 ,
 .\" and in
 .\" .Ar string2
 .\" when both the
 .\" .Fl d
 .\" and
-- >8 --

[:lower:] is described as "lower-case alphabetic characters", but
[:upper:] is described as "upper-case characters".

I think this is the preferable direxion for this to go,
since it makes it clearer that both [:lower:] and [:upper:]
are subsets of [:alpha:] as "[filter] alphabetic characters" ‒
please consider the preceding patch.

Best,
наб

Please keep me in CC, as I'm not subscribed.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index