Last change
on this file since 2778 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
|
Rev | Line | |
---|
[2725] | 1 | # FEATURE: CONFIG_FEATURE_TR_CLASSES
|
---|
| 2 |
|
---|
[821] | 3 | run_tr ()
|
---|
| 4 | {
|
---|
[2725] | 5 | $ECHO -n "echo '$1' | tr '$2' '$3': "
|
---|
[821] | 6 | echo "$1" | $bb tr "$2" "$3"
|
---|
| 7 | echo
|
---|
| 8 | }
|
---|
| 9 | tr_test ()
|
---|
| 10 | {
|
---|
| 11 | run_tr "cbaab" abc zyx
|
---|
[1765] | 12 | run_tr "TESTING A B C" '[A-Z]' '[a-z]'
|
---|
[821] | 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
|
---|
[1765] | 22 | run_tr " .,:" '[:punct:]' 12
|
---|
| 23 | run_tr " .,:" '[:cntrl:]' 12
|
---|
[821] | 24 | }
|
---|
| 25 |
|
---|
| 26 | bb= tr_test > logfile.gnu
|
---|
| 27 | bb=busybox tr_test > logfile.bb
|
---|
[1765] | 28 | diff -u logfile.gnu logfile.bb
|
---|
Note:
See
TracBrowser
for help on using the repository browser.