From b4f072009196c88571daccec7f79efe477b69c51 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 8 Oct 2009 22:57:26 +0200 Subject: [PATCH] Updated code enabling Bourne-compatibility in test cases * tests/defs.in: updated the code enabling Bourne-compatibility mode in the shell (now it's stolen from autoconf 2.64). --- ChangeLog | 6 ++++++ tests/defs.in | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b54cf75..0249139 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-08 Stefano Lattarini + + Updated code enabling Bourne-compatibility in test scripts. + * tests/defs.in: updated the code enabling Bourne-compatibility + mode in the shell (now it's copied from autoconf 2.64). + 2009-10-06 Bruno Haible Ralf Wildenhues diff --git a/tests/defs.in b/tests/defs.in index 61182b6..edaa565 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -20,19 +20,19 @@ # Defines for Automake testing environment. # Tom Tromey -# Be Bourne compatible. -# (Snippet copied from configure's initialization in Autoconf 2.59c.) +# Be more Bourne compatible. +# (Snippet copied from configure's initialization in Autoconf 2.64) +DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh # Ensure we are running from the right directory. test -f ./defs || { -- 1.6.3.3