]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/extglob1a.sub
Bash-4.3 distribution sources and documentation
[thirdparty/bash.git] / tests / extglob1a.sub
diff --git a/tests/extglob1a.sub b/tests/extglob1a.sub
new file mode 100644 (file)
index 0000000..e029ea4
--- /dev/null
@@ -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 /
+rm -rf $TESTDIR