aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-07-19 15:51:30 +1000
committerBen Elliston <bje@gnu.org>2018-07-19 15:51:30 +1000
commit366485ce630d46b726f97b6e1d6a42b750fb52cb (patch)
treefa2e5c86e970edfb7d52103b9c3599c43f24da4f
parent5dca1d3faacc87a4cbc189ee63a03932d0e8ecc2 (diff)
downloaddejagnu-366485ce630d46b726f97b6e1d6a42b750fb52cb.zip
dejagnu-366485ce630d46b726f97b6e1d6a42b750fb52cb.tar.gz
dejagnu-366485ce630d46b726f97b6e1d6a42b750fb52cb.tar.bz2
* runtest: Use POSIX 'command', not 'type', to look for the Expect
binary. Silences Shellcheck warning SC2039 ("In POSIX sh, 'type' is undefined").
-rw-r--r--ChangeLog6
-rwxr-xr-xruntest2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6061de7..2eb6d78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2018-07-19 Ben Elliston <bje@gnu.org>
+ * runtest: Use POSIX 'command', not 'type', to look for the Expect
+ binary. Silences Shellcheck warning SC2039 ("In POSIX sh, 'type'
+ is undefined").
+
+2018-07-19 Ben Elliston <bje@gnu.org>
+
* config.guess: Update to latest version.
* config.sub: Likewise.
diff --git a/runtest b/runtest
index c44fc27..ee6880c 100755
--- a/runtest
+++ b/runtest
@@ -139,7 +139,7 @@ if [ -z "$runpath" ] ; then
exit 1
fi
-if ! type "$expectbin" > /dev/null 2> /dev/null ; then
+if ! command -v "$expectbin" > /dev/null ; then
echo "ERROR: unable to find expect in the PATH"
exit 1
fi