summaryrefslogtreecommitdiffstats
path: root/tests/extglob1a.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/extglob1a.sub16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/extglob1a.sub b/tests/extglob1a.sub
new file mode 100644
index 0000000..686dab7
--- /dev/null
+++ b/tests/extglob1a.sub
@@ -0,0 +1,16 @@
+shopt -s extglob
+
+TESTDIR=${TMPDIR:-/tmp}/eglob-test-$$
+mkdir $TESTDIR
+builtin cd $TESTDIR || { echo $0: cannot cd to $TESTDIR >&2 ; exit 1; }
+rm -rf *
+
+touch a ab ba
+
+echo a*!(x)
+echo a!(x)
+echo a*?(x)
+echo a?(x)
+
+builtin cd $OLDPWD
+rm -rf $TESTDIR