projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bash-4.1 distribution source
[platform/upstream/bash.git]
/
tests
/
extglob.tests
diff --git
a/tests/extglob.tests
b/tests/extglob.tests
index
1a123d8
..
f9c17c7
100644
(file)
--- a/
tests/extglob.tests
+++ b/
tests/extglob.tests
@@
-193,7
+193,8
@@
esac
MYDIR=$PWD # save where we are
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 *
mkdir $TESTDIR
builtin cd $TESTDIR || { echo $0: cannot cd to $TESTDIR >&2 ; exit 1; }
rm -rf *
@@
-353,8
+354,18
@@
echo a@(.|[^[:alnum:]])b
builtin cd /
rm -rf $TESTDIR
builtin cd /
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
# 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
exit 0
exit 0