Commit eb320ce7 authored by tim@threads.polyesthetic.msg's avatar tim@threads.polyesthetic.msg
Browse files

mysql-test-run.sh don't depend on 'tr'

parent 714431e3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
heikki@donna.mysql.fi
monty@donna.mysql.fi
sasha@mysql.sashanet.com
tim@threads.polyesthetic.msg
+3 −2
Original line number Diff line number Diff line
@@ -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"
}