1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Added intern which functions to benchmarks

This commit is contained in:
monty@donna.mysql.fi
2001-04-12 15:46:50 +03:00
parent 95d908dd0b
commit 714431e3a6
2 changed files with 25 additions and 0 deletions

View File

@@ -20,6 +20,27 @@ TZ=GMT-3; export TZ # for UNIX_TIMESTAMP tests to work
PATH=/bin:/usr/bin:/usr/local/bin:/usr/bsd:/usr/X11R6/bin
# Standard functions
which ()
{
DIRS=`echo $PATH | tr ":" " "`
for file
do
for dir in $DIRS
do
if test -f $dir/$file
then
echo "$dir/$file"
continue 2
fi
done
echo "which: no $file in ($PATH)"
exit 1
done
}
# No paths below as we can't be sure where the program is!
BASENAME=`which basename | head -1`