From: Nicholas Clark Date: Mon, 21 Sep 2009 09:22:50 +0000 (+0100) Subject: Fix my bash-ism in 9988b539d419b6c4 - test takes a single =, not ==. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12a670244c7ca1a343447e9fd9496438a372a536;p=p5sagit%2Fp5-mst-13.2.git 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. --- diff --git a/runtests.SH b/runtests.SH index 3b0f9b7..1219bc0 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