summaryrefslogtreecommitdiffstats
path: root/test/bctest
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-04-12 12:09:07 +0000
committerBodo Möller <bodo@openssl.org>2001-04-12 12:09:07 +0000
commitd349c5f8fd7c82b2545ab17dd96a30dd8ee1a818 (patch)
tree118ee4bee54520793fb4d7f417f93590ede41805 /test/bctest
parent3a114663812ddf7fa520e4543493c2a590183d49 (diff)
some updates from 0.9.7-dev
Diffstat (limited to 'test/bctest')
-rwxr-xr-xtest/bctest18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/bctest b/test/bctest
index 17b75d4eca..fbe74ed90b 100755
--- a/test/bctest
+++ b/test/bctest
@@ -12,10 +12,22 @@
IFS=:
-for dir in $PATH; do
- bc="$dir/bc"
+try_without_dir=true
+# First we try "bc", then "$dir/bc" for each item in $PATH.
+for dir in dummy:$PATH; do
+ if [ "$try_without_dir" = true ]; then
+ # first iteration
+ bc=bc
+ try_without_dir=false
+ else
+ # second and later iterations
+ bc="$dir/bc"
+ if [ ! -f "$bc" ]; then # '-x' is not available on Ultrix
+ bc=''
+ fi
+ fi
- if [ -x "$bc" -a ! -d "$bc" ]; then
+ if [ ! "$bc" = '' ]; then
failure=none