diff options
author | unknown <tim@threads.polyesthetic.msg> | 2001-04-14 09:35:42 -0400 |
---|---|---|
committer | unknown <tim@threads.polyesthetic.msg> | 2001-04-14 09:35:42 -0400 |
commit | 15742ff34378a464c1b0ffa01f3cb5ace3d56866 (patch) | |
tree | 80a4e39177b410a9d34fee5ca8cf1f9c691c4969 /mysql-test | |
parent | fa30245c81d8a4412d4d10a44d84fb43cc6c6b1e (diff) | |
download | mariadb-git-15742ff34378a464c1b0ffa01f3cb5ace3d56866.tar.gz |
mysql-test-run.sh don't depend on 'tr'
mysql-test/mysql-test-run.sh:
use IFS=: instead of tr : " "
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 1ee2786e2a2..f882f2d0ef5 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -24,10 +24,10 @@ PATH=/bin:/usr/bin:/usr/local/bin:/usr/bsd:/usr/X11R6/bin which () { - DIRS=`echo $PATH | tr ":" " "` + IFS="${IFS= }"; save_ifs="$IFS"; IFS=':' for file do - for dir in $DIRS + for dir in $PATH do if test -f $dir/$file then @@ -38,6 +38,7 @@ which () echo "which: no $file in ($PATH)" exit 1 done + IFS="$save_ifs" } |