diff options
author | Bodo Möller <bodo@openssl.org> | 2001-04-12 12:09:07 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-04-12 12:09:07 +0000 |
commit | d349c5f8fd7c82b2545ab17dd96a30dd8ee1a818 (patch) | |
tree | 118ee4bee54520793fb4d7f417f93590ede41805 /test/bctest | |
parent | 3a114663812ddf7fa520e4543493c2a590183d49 (diff) |
some updates from 0.9.7-dev
Diffstat (limited to 'test/bctest')
-rwxr-xr-x | test/bctest | 18 |
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 |