From c8f5f47cab5d0f29e57552ddc67b96ac0ab22ded 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 scripts. * tests/defs.in: updated the code enabling Bourne-compatibility mode in the shell (now it's copied from autoconf 2.64). Signed-off-by: Ralf Wildenhues --- ChangeLog | 4 ++++ tests/defs.in | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61d415b92..cd3746c38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-10-11 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). + Avoid leaking TEST_LOG_COMPILER in environment of test scripts. * tests/defs.in: Unset variable `TEST_LOG_COMPILER'. diff --git a/tests/defs.in b/tests/defs.in index 06f811085..995e6494a 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 || { -- 2.47.2