summaryrefslogtreecommitdiff
path: root/Misc/globtests.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/globtests.ksh')
-rwxr-xr-xMisc/globtests.ksh13
1 files changed, 12 insertions, 1 deletions
diff --git a/Misc/globtests.ksh b/Misc/globtests.ksh
index b03cc488e..6a9bf9b0e 100755
--- a/Misc/globtests.ksh
+++ b/Misc/globtests.ksh
@@ -1,6 +1,6 @@
#!/usr/local/bin/zsh -f
-setopt kshglob
+setopt kshglob extendedglob
failed=0
while read res str pat; do
@@ -68,6 +68,7 @@ t foobar !(foo)*
t moo.cow !(*.*).!(*.*)
f mad.moo.cow !(*.*).!(*.*)
f mucca.pazza mu!(*(c))?.pa!(*(z))?
+f _foo~ _?(*[^~])
t fff !(f)
t fff *(!(f))
t fff +(!(f))
@@ -87,5 +88,15 @@ t zoox @(!(z*)|*x)
t foo *(!(foo))
f foob !(foo)b*
t foobb !(foo)b*
+t fooxx (#i)FOOXX
+f fooxx (#l)FOOXX
+t FOOXX (#l)fooxx
+f fooxx (#i)FOO@(#I)X@(#i)X
+t fooXx (#i)FOO@(#I)X@(#i)X
+t fooxx @((#i)FOOX)x
+f fooxx @((#i)FOOX)X
+f BAR @(bar|(#i)foo)
+t FOO @(bar|(#i)foo)
+t Modules (#i)*m*
EOT
print "$failed tests failed."