changeset 17591:f98ee53d8e71

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' by Dagobert Michelsen in <http://bugs.gnu.org/16380>. * tests/init.sh (re_shell_): Export if it's used.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 07 Jan 2014 11:46:27 -0800
parents cb71c6502a15
children 91b9d687d468
files ChangeLog tests/init.sh
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 07 06:40:29 2014 -0800
+++ b/ChangeLog	Tue Jan 07 11:46:27 2014 -0800
@@ -1,3 +1,11 @@
+2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+	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'
+	by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
+	* tests/init.sh (re_shell_): Export if it's used.
+
 2014-01-06  Eric Blake  <eblake@redhat.com>
 
 	md5, sha1, sha256, sha512: support older autoconf
--- a/tests/init.sh	Tue Jan 07 06:40:29 2014 -0800
+++ b/tests/init.sh	Tue Jan 07 11:46:27 2014 -0800
@@ -201,6 +201,7 @@
       *x*) opts_=-x ;;
       *) opts_= ;;
     esac
+    export re_shell_
     exec "$re_shell_" $opts_ "$0" --no-reexec "$@"
     echo "$ME_: exec failed" 1>&2
     exit 127