diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-06-02 22:15:21 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-06-02 22:15:21 +0200 |
| commit | d1059e8648d9a567d8a09b4f564bceb1a40fa262 (patch) | |
| tree | 392f183230ba1bd7a70fd5f44e9e033668770502 /test-cases/case3_negative_lookahead | |
| parent | 5b79c55d2eea520c1d32be0cf125ee71462f9fb1 (diff) | |
| download | pish-d1059e8648d9a567d8a09b4f564bceb1a40fa262.tar.gz | |
one more negative lookahead test
Diffstat (limited to 'test-cases/case3_negative_lookahead')
| -rw-r--r-- | test-cases/case3_negative_lookahead/script.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-cases/case3_negative_lookahead/script.sh b/test-cases/case3_negative_lookahead/script.sh index 837f208..987a886 100644 --- a/test-cases/case3_negative_lookahead/script.sh +++ b/test-cases/case3_negative_lookahead/script.sh @@ -41,3 +41,15 @@ fun x4 { match x4 x yes match x4 xa no match x4 xy yes + +fun x5 { + case $1 { + (?!foo)... { echo yes } + .* { echo no } + } +} +match x5 x no +match x5 xy no +match x5 xyz yes +match x5 foo no +match x5 abc yes |
