Last change
on this file since 3288 was 2725, checked in by Bruno Cornec, 14 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
File size:
665 bytes
|
Line | |
---|
1 | # FEATURE: CONFIG_FEATURE_TR_CLASSES
|
---|
2 |
|
---|
3 | run_tr ()
|
---|
4 | {
|
---|
5 | $ECHO -n "echo '$1' | tr '$2' '$3': "
|
---|
6 | echo "$1" | $bb tr "$2" "$3"
|
---|
7 | echo
|
---|
8 | }
|
---|
9 | tr_test ()
|
---|
10 | {
|
---|
11 | run_tr "cbaab" abc zyx
|
---|
12 | run_tr "TESTING A B C" '[A-Z]' '[a-z]'
|
---|
13 | run_tr "abc[]" "a[b" AXB
|
---|
14 | run_tr abc '[:alpha:]' A-ZA-Z
|
---|
15 | run_tr abc56 '[:alnum:]' A-ZA-Zxxxxxxxxxx
|
---|
16 | run_tr 012 '[:digit:]' abcdefghi
|
---|
17 | run_tr abc56 '[:lower:]' '[:upper:]'
|
---|
18 | run_tr " " '[:space:]' 12345
|
---|
19 | run_tr " " '[:blank:]' 12
|
---|
20 | run_tr 'a b' '[= =]' X
|
---|
21 | run_tr "[:" '[:' ab
|
---|
22 | run_tr " .,:" '[:punct:]' 12
|
---|
23 | run_tr " .,:" '[:cntrl:]' 12
|
---|
24 | }
|
---|
25 |
|
---|
26 | bb= tr_test > logfile.gnu
|
---|
27 | bb=busybox tr_test > logfile.bb
|
---|
28 | diff -u logfile.gnu logfile.bb
|
---|
Note:
See
TracBrowser
for help on using the repository browser.