diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-06-02 21:31:50 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-06-02 21:31:50 +0200 |
| commit | 5647a7645739fa2aa2dea4fe059b4efe84a278bc (patch) | |
| tree | b3471284c623f917037ba3e8379081afc3ca98de /test-cases | |
| parent | 5caaf765648b12a8b6002633f849f7fc4f1efc21 (diff) | |
| download | pish-5647a7645739fa2aa2dea4fe059b4efe84a278bc.tar.gz | |
seems to work
Diffstat (limited to 'test-cases')
| -rw-r--r-- | test-cases/case2_lookahead/script.sh | 12 |
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 |
