diff options
author | Jim Meyering <jim@meyering.net> | 1996-04-04 23:08:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-04-04 23:08:30 +0000 |
commit | 42a0e84308ceb0b80a6c7d2e4e106064485ee50b (patch) | |
tree | 94c074bd6420b21010607b351738470a73be2972 /src/pr.c | |
parent | 564707901d7b4132dbbef0df6bf33dcc00e4698f (diff) | |
download | coreutils-42a0e84308ceb0b80a6c7d2e4e106064485ee50b.tar.xz |
The following commands all failed unnecessarily.
tr -cs '[:upper:]' '[X*]'
tr -dcs '[:lower:]' n-rs-z
tr -ds '[:xdigit:]' [:alnum:]'
tr -dcs '[:alnum:]' [:digit:]'
tr -dc '[:upper:]'
Reported by Ross Ridge (ross@worf.mks.com).
(validate): Add missing conjunct (translating) in test for
`translating and complementing character classes' error. Before,
valid uses of tr could fail. E.g. `tr -dcs '[:cntrl:]' '[:alnum:]''.
(homogeneous_spec_list): New function.
(validate): Use it to relax the old (overly restrictive) restriction
that prohibited use of complemented character classes when translating.
Now, that is allowed as long as the translation maps many to one.
(get_spec_stats): Rename and redefine global has_char_class from
has_upper_or_lower.
Diffstat (limited to 'src/pr.c')
0 files changed, 0 insertions, 0 deletions