summaryrefslogtreecommitdiff
path: root/runtests.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-21 10:22:50 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-21 10:22:50 +0100
commit12a670244c7ca1a343447e9fd9496438a372a536 (patch)
tree43814d44c6f0c5a954391d43c6d1ba0318fc3630 /runtests.SH
parent6fcc101e247754269f37bfa4586f8325b2e75b06 (diff)
downloadperl-12a670244c7ca1a343447e9fd9496438a372a536.tar.gz
Fix my bash-ism in 9988b539d419b6c4 - test takes a single =, not ==.
Annoyingly bash just accepts it, and dash generates a diagnostic to stderr but carries on, hence why I didn't spot the problem initially.
Diffstat (limited to 'runtests.SH')
-rw-r--r--runtests.SH6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtests.SH b/runtests.SH
index 3b0f9b743b..1219bc04f5 100644
--- a/runtests.SH
+++ b/runtests.SH
@@ -28,7 +28,7 @@ case \$# in
;;
esac
-if test X"\$PERL" == X; then
+if test X"\$PERL" = X; then
echo "please supply PERL in the environment"
exit 1
fi
@@ -53,7 +53,7 @@ case \$1 in
;;
esac
-if test X"\$TESTFILE" == X; then
+if test X"\$TESTFILE" = X; then
TESTFILE=TEST
fi
@@ -63,7 +63,7 @@ $lns ../\$PERL \$PERL
# The second branch is for testing without a tty or controlling terminal,
# see t/op/stat.t
-if test \$tty == Y; then
+if test \$tty = Y; then
\$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
else
PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES