aboutsummaryrefslogtreecommitdiffstats
path: root/test-cases/case2_lookahead
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-06-02 21:31:50 +0200
committerJonas Maier <jonas@x77.dev>2026-06-02 21:31:50 +0200
commit5647a7645739fa2aa2dea4fe059b4efe84a278bc (patch)
treeb3471284c623f917037ba3e8379081afc3ca98de /test-cases/case2_lookahead
parent5caaf765648b12a8b6002633f849f7fc4f1efc21 (diff)
downloadpish-5647a7645739fa2aa2dea4fe059b4efe84a278bc.tar.gz
seems to work
Diffstat (limited to 'test-cases/case2_lookahead')
-rw-r--r--test-cases/case2_lookahead/script.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-cases/case2_lookahead/script.sh b/test-cases/case2_lookahead/script.sh
index 1a2226b..a77eb85 100644
--- a/test-cases/case2_lookahead/script.sh
+++ b/test-cases/case2_lookahead/script.sh
@@ -36,3 +36,15 @@ match x1 aa no
match x1 ax no
match x1 axx no
match x1 aax no
+
+fun x2 {
+ case $1 {
+ x(?=foo)(?=...bar).* { echo yes }
+ .* { echo no }
+ }
+}
+match x2 xfoobar yes
+match x2 xfoobar_some_more_stuff yes
+match x2 x___bar no
+match x2 xfoo___ no
+match x2 xfoo no