From efc854066a28129c347be9f8226b43919c8f5a74 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 7 Jan 2014 21:43:07 -0800 Subject: [PATCH] tests: fix export bug in previous patch Problem reported by Jim Meyering. * tests/init.sh (re_shell): New var, which is exported instead of re_shell_. --- ChangeLog | 5 +++++ tests/init.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c4246aaf76..67bbf7b068 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2014-01-07 Paul Eggert + tests: fix export bug in previous patch + Problem reported by Jim Meyering. + * tests/init.sh (re_shell): New var, which is exported instead of + re_shell_. + tests: simplify porting to Solaris 10 /bin/sh Some test cases in 'grep' need a shell that groks '$('; export re_shell_ for their benefit. Problem reported for 'grep' diff --git a/tests/init.sh b/tests/init.sh index e07c39c881..fbd293d642 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -201,7 +201,8 @@ else *x*) opts_=-x ;; *) opts_= ;; esac - export re_shell_ + re_shell=$re_shell_ + export re_shell exec "$re_shell_" $opts_ "$0" --no-reexec "$@" echo "$ME_: exec failed" 1>&2 exit 127 -- 2.39.5