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

наб <[email protected]> Sun, 13 Jun 2021 13:11:51 +0200
Newsgroups gmane.os.netbsd.documentation
Message-ID <[email protected]>
--n3vajxcm7xzidzbb
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

When reading through tr(1), I noticed the following inconsistency:
-- >8 --
Index: tr.1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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" =E2=80=92
please consider the preceding patch.

Best,
=D0=BD=D0=B0=D0=B1

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

--n3vajxcm7xzidzbb
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmDF5/QACgkQvP0LAY0m
WPHA5g//aCG7+oqf8yeFQJDpajFupT7PWBUmAvB8+Zg2XmBmXt4lweGscH7tAjzw
JR1L972hOAxb7tqzGiDBIRSAolSN6o5kgVdUNKrJTIH8qTSEvKd/K56AfTBRPC7d
azVoywb/wgZ2AaK8m/PdUHARF8nSAIqLJDrDk8lau4HJHyNlXhVY8xBGJsbjp71F
empGUYBwVETVpOGaWN5+FY/WRqGxp7+yazKx8I3ExDmp8+2URujuS5Cq/4tCIRPt
amko3YJv2XBe4Unr9jEzha/GPpNSwshJq9GO92lB3S0sNelL3jcgOJxukARFO9OW
/gzmaUKRnhHdnlvw2gglCo0h6wk1NDekDE22NRG7nPpbglxNExgppUZuwspIT5a1
cn4rrhufyUEyjxokE63JHOGZHp/Ik2GMmbsPlLPN2cThd1oavLyGLxVOIpJj/4M9
WbutBpNI1lzE3hA/DU1SS7K2r1eZsWPUYFETON2iRv2FRIPKAiCZQIY96FptME3s
w7HrqgydSF5JS0OOz9CmysBldTkXCEjYRz4yuQfgiRFE2mHQWMhXcVRpZ78udurb
jVArpZ9pafgSCZQvnxMrpvzyWGma/rPHSvdkA7lW6pegbsQ0WPC2dACOe+BarQcY
OZ04ahlv9ZYYPyxxqLrYToZDtYEMQJf6/qJdii8xJxbJ299c0OI=
=/pHb
-----END PGP SIGNATURE-----

--n3vajxcm7xzidzbb--