Last change
on this file since 896 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
561 bytes
|
Rev | Line | |
---|
[821] | 1 | run_tr ()
|
---|
| 2 | {
|
---|
| 3 | echo -n "echo '$1' | tr '$2' '$3': "
|
---|
| 4 | echo "$1" | $bb tr "$2" "$3"
|
---|
| 5 | echo
|
---|
| 6 | }
|
---|
| 7 | tr_test ()
|
---|
| 8 | {
|
---|
| 9 | run_tr "cbaab" abc zyx
|
---|
| 10 | run_tr "TESTING A B C" '[A-Z]' '[a-z]'
|
---|
| 11 | run_tr "abc[]" "a[b" AXB
|
---|
| 12 | run_tr abc '[:alpha:]' A-ZA-Z
|
---|
| 13 | run_tr abc56 '[:alnum:]' A-ZA-Zxxxxxxxxxx
|
---|
| 14 | run_tr 012 '[:digit:]' abcdefghi
|
---|
| 15 | run_tr abc56 '[:lower:]' '[:upper:]'
|
---|
| 16 | run_tr " " '[:space:]' 12345
|
---|
| 17 | run_tr " " '[:blank:]' 12
|
---|
| 18 | run_tr 'a b' '[= =]' X
|
---|
| 19 | run_tr "[:" '[:' ab
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | bb= tr_test > logfile.gnu
|
---|
| 23 | bb=busybox tr_test > logfile.bb
|
---|
| 24 | cmp logfile.gnu logfile.bb
|
---|
Note:
See
TracBrowser
for help on using the repository browser.