1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 02:10:57 +02:00
Files
coreutils/tests/tr/range-tests

19 lines
881 B
Plaintext
Raw Normal View History

1993-03-23 02:52:19 +00:00
[]*] # What about this?! valid
1993-03-02 14:41:40 +00:00
[:*096] # invalid: 096 isn't a valid octal number
1993-03-23 02:52:19 +00:00
a [:*0] # as many colons as string1 was long (not to be confused
# with a character class)
1993-03-02 14:41:40 +00:00
[:*] # ditto
1993-03-23 02:52:19 +00:00
[:*016] # 14 colons
1993-03-02 14:41:40 +00:00
[=]=] # valid: equivalence class containing ']'
[-a # valid, assuming `[' is before 'a' in collating sequence
-] # valid, assuming ` ' is before ']' in collating sequence
--] # valid, assuming `-' is before ']' in collating sequence
\0-\377 # valid
1993-03-23 02:52:19 +00:00
[\0-\377]# valid, (but brackets will be mapped to corresponding chars
# in other string)
1993-03-02 14:41:40 +00:00
abcde[:* # valid, but none of the characters is considered special
1993-03-23 02:52:19 +00:00
abc xyzdef # Should this (str2 longer than str1) evoke a warning?
# Probably so if we're only translating, but if also deleting or
# squeezing this makes sense.
abcdef : # Map abcdef all to `:', as if str2 had been [:*]