5516N/A# Unset xpg_echo when running the posix2 regexp tests.
5516N/A# Solaris-specific. Not for upstream.
1303N/A--- tests/posixexp2.tests 2010-11-11 17:50:47.000000000 -0800
1303N/A+++ tests/posixexp2.tests 2012-07-12 13:15:14.818468328 -0700
1303N/A@@ -2,6 +2,11 @@
1303N/A
1303N/A set -o posix
1303N/A
1303N/A+xpg=`shopt | grep xpg_echo | awk '{ print $2 }'`
1303N/A+if [ ${xpg} = "on" ] ; then
1303N/A+ shopt -u xpg_echo
1303N/A+fi
1303N/A+
1303N/A (echo 1 ${IFS+'}'z}) 2>&- || echo failed in 1
1303N/A (echo 2 "${IFS+'}'z}") 2>&- || echo failed in 2
1303N/A (echo 3 "foo ${IFS+'bar} baz") 2>&- || echo failed in 3