diff options
Diffstat (limited to 'tests/extglob.tests')
-rw-r--r-- | tests/extglob.tests | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/extglob.tests b/tests/extglob.tests index 51e33ee..f9c17c7 100644 --- a/tests/extglob.tests +++ b/tests/extglob.tests @@ -193,7 +193,8 @@ esac MYDIR=$PWD # save where we are -TESTDIR=/tmp/eglob-test-$$ +: ${TMPDIR:=/var/tmp} +TESTDIR=$TMPDIR/eglob-test-$$ mkdir $TESTDIR builtin cd $TESTDIR || { echo $0: cannot cd to $TESTDIR >&2 ; exit 1; } rm -rf * @@ -356,9 +357,14 @@ rm -rf $TESTDIR x=abcdef recho "${x#*(a|b)cd}" +TEST='a , b' +shopt -s globstar +echo ${TEST//*([[:space:]]),*([[:space:]])/,} +shopt -u globstar + # this is for the benefit of pure coverage, so it writes the pcv file # in the right place -builtin cd $MYDIR +builtin cd "$MYDIR" ${THIS_SH} ./extglob1.sub |