summaryrefslogtreecommitdiff
path: root/tests/extglob3.sub
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2014-04-07 10:47:09 -0400
committerChet Ramey <chet.ramey@case.edu>2014-04-07 10:47:09 -0400
commitc28fcb7eb421f2482d086ec8841a9ec005751244 (patch)
tree3cbb8819e552820d4631dedc27cee7f8f04323c6 /tests/extglob3.sub
parente2f12fdf579f8e3ca91c95f4facd7518bf441b25 (diff)
downloadbash-c28fcb7eb421f2482d086ec8841a9ec005751244.tar.gz
commit bash-20140327 snapshot
Diffstat (limited to 'tests/extglob3.sub')
-rw-r--r--tests/extglob3.sub21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/extglob3.sub b/tests/extglob3.sub
new file mode 100644
index 00000000..94567ee9
--- /dev/null
+++ b/tests/extglob3.sub
@@ -0,0 +1,21 @@
+shopt -s extglob
+DIR=/tmp/extglob-$$
+mkdir $DIR
+cd $DIR
+
+touch a.log
+
+echo *(.)
+echo *(.)*
+echo ?(foo)*
+echo ?(foo)
+echo *(foo)*
+echo @(|foo)*
+
+echo *(foo).*
+
+echo !(foo)*
+
+cd $OLDPWD
+rm -rf $DIR
+