spec test index / oilshell.org
49 passed, 5 ok, 4 known unimplemented, 0 known bugs, 3 failed, 0 skipped
zsh | 0 BASH_REMATCH stdout: ['']stderr: |
bash | 4 Regex quoted with single quotes stdout: stderr: |
bash | 5 Regex quoted with double quotes stdout: stderr: |
bash | 8 Double quoting pat variable -- again bash doesn't like it. stdout: stderr: |
zsh | 9 Regex with == and not =~ is parse error, different lexer mode required stdout: stderr: |
zsh | 11 Malformed regex stdout: stderr: zsh: parse error near `)' |
osh | 12 Regex with char class [osh stdout] Expected 'true\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Error compiling regex: Un-matched bracket list operators. Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ Invalid regex: '([a' --- Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ Unexpected extra word (CompoundWord parts: [ (LiteralPart token:(token id:Lit_Chars val:'(' span_id:8)) (LiteralPart token:(token id:Lit_Other val:'[' span_id:9)) (LiteralPart token:(token id:Lit_Chars val:a span_id:10)) ] ) --- Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
osh-byterun | 12 Regex with char class [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 2 stdout: stderr: Error compiling regex: Un-matched bracket list operators. Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ Invalid regex: '([a' --- Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ Unexpected extra word (CompoundWord parts: [ (LiteralPart token:(token id:Lit_Chars val:'(' span_id:8)) (LiteralPart token:(token id:Lit_Other val:'[' span_id:9)) (LiteralPart token:(token id:Lit_Chars val:a span_id:10)) ] ) --- Line 2 of '<stdin>' [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
zsh | 13 Operators lose meaning in () in regex state (BASH_REGEX_CAHRS) stdout: stderr: zsh: parse error near `<' |
osh | 13 Operators lose meaning in () in regex state (BASH_REGEX_CAHRS) [osh stdout] Expected 'true\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Error compiling regex: Un-matched parenthesis group operators. Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^ Invalid regex: '(' --- Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^ Unexpected extra word (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:'(' span_id:8))]) --- Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
osh-byterun | 13 Operators lose meaning in () in regex state (BASH_REGEX_CAHRS) [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 2 stdout: stderr: Error compiling regex: Un-matched parenthesis group operators. Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^ Invalid regex: '(' --- Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^ Unexpected extra word (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:'(' span_id:8))]) --- Line 2 of '<stdin>' [[ '< >' =~ (< >) ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
zsh | 14 Regex with | stdout: stderr: zsh: parse error near `|' |
zsh | 15 Double quoted regex gets regex-escaped stdout: stderr: zsh: failed to compile regex: Invalid preceding regular expression |
osh | 15 Double quoted regex gets regex-escaped [osh stdout] Expected 'true\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Error compiling regex: Invalid use of repetition operators such as using '*' as the first character. Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^ Invalid regex: '{' --- Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^ Unexpected extra word (CompoundWord parts: [ (DoubleQuotedPart parts: [(LiteralPart token:(token id:Lit_Chars val:'{' span_id:7))] spids: [6 8] ) ] ) --- Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
osh-byterun | 15 Double quoted regex gets regex-escaped [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 2 stdout: stderr: Error compiling regex: Invalid use of repetition operators such as using '*' as the first character. Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^ Invalid regex: '{' --- Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^ Unexpected extra word (CompoundWord parts: [ (DoubleQuotedPart parts: [(LiteralPart token:(token id:Lit_Chars val:'{' span_id:7))] spids: [6 8] ) ] ) --- Line 2 of '<stdin>' [[ { =~ "{" ]] && echo true ^~ Error parsing [[ --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |