aboutsummaryrefslogtreecommitdiffstats
path: root/test-cases/case2_lookahead/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-cases/case2_lookahead/script.sh')
-rw-r--r--test-cases/case2_lookahead/script.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-cases/case2_lookahead/script.sh b/test-cases/case2_lookahead/script.sh
index a77eb85..891441b 100644
--- a/test-cases/case2_lookahead/script.sh
+++ b/test-cases/case2_lookahead/script.sh
@@ -48,3 +48,18 @@ match x2 xfoobar_some_more_stuff yes
match x2 x___bar no
match x2 xfoo___ no
match x2 xfoo no
+
+fun x3 {
+ case $1 {
+ x(?!(a|b)).* { echo yes }
+ .* { echo no }
+ }
+}
+match x3 x yes
+match x3 xa no
+match x3 xb no
+match x3 xax no
+match x3 xbx no
+match x3 xxa yes
+match x3 xxb yes
+match x3 xfoobar yes