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

Bug#998803: busybox: Debian’s busybox’ tr violates POSIX



Package: busybox
Version: 1:1.30.1-7+b1
Severity: important


Hey.

Unlike mandated by POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/tr.html

busybox' tr in Debian doesn't seem to understand any of the character classes,...
and I'd guess neither the other formats given in the EXTENDED DESCRIPTION of POSIX.

Not only does it not understand this, but it even takes such characters literal so e.g. when using
busybox tr -d '[:alpha:]' it will remove 'a' and so on.


It seems that this comes from:
# CONFIG_FEATURE_TR_CLASSES is not set

in the various configs.


And I guess:
# CONFIG_FEATURE_TR_EQUIV is not set

should be set as well.


Actually, this bug has probably severity grave, since it may easily break any
unrelated package which expects tr to work as it should.


Cheers,
Chris.


Reply to: