Front page | perl.perl5.porters |
Postings from September 2009
Re: [perl.git] branch blead, updated. GitLive-blead-2356-g12a6702
From:
Nicholas Clark
Date:
September 21, 2009 02:26
Subject:
Re: [perl.git] branch blead, updated. GitLive-blead-2356-g12a6702
Message ID:
20090921092624.GV60303@plum.flirble.org
On Mon, Sep 21, 2009 at 10:03:04AM +0100, Nicholas Clark wrote:
> My shell script changes work for me on FreeBSD, Debian, Ubuntu (with
> /bin/dash not bash) and OS X, and -e appears to be documented as an option
> to /bin/sh back to Unix Version 7, so I'm a bit at a loss as to how I've
> broken pretty much everything else Unix-like.
Hopefully fixed by this:
On Mon, Sep 21, 2009 at 11:24:33AM +0200, Nicholas Clark wrote:
> In perl.git, the branch blead has been updated
>
> <http://perl5.git.perl.org/perl.git/commitdiff/12a670244c7ca1a343447e9fd9496438a372a536?hp=6fcc101e247754269f37bfa4586f8325b2e75b06>
>
> - Log -----------------------------------------------------------------
> commit 12a670244c7ca1a343447e9fd9496438a372a536
> Author: Nicholas Clark <nick@ccl4.org>
> Date: Mon Sep 21 10:22:50 2009 +0100
>
> 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.
> -----------------------------------------------------------------------
>
> Summary of changes:
> runtests.SH | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> 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 </dev/tty
> else
> PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES
>
> --
> Perl5 Master Repository