spec test index / oilshell.org
91 passed, 6 OK, 4 not implemented, 7 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
zsh | 0 BASH_REMATCH stdout: status=0 [''] status=1 ['']stderr: |
zsh | 4 Regex quoted with single quotes stdout: truestderr: |
zsh | 5 Regex quoted with double quotes stdout: truestderr: |
zsh | 8 Double quoting pat variable -- again bash doesn't like it. stdout: truestderr: |
zsh | 10 Regex with == and not =~ is parse error, different lexer mode required stdout: stderr: |
zsh | 12 Malformed regex stdout: stderr: zsh: parse error near `)' |
osh | 13 Regex with char class containing space [osh stdout] Expected 'true\n', got '' [osh status] Expected 0, got 2 stdout: stderr: [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ [ stdin ]:1: Expected ]] |
osh_ALT | 13 Regex with char class containing space [osh_ALT stdout] Expected 'true\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: [[ 'ba ba ' =~ ([a b]+) ]] && echo true ^ [ stdin ]:1: Expected ]] |
zsh | 14 Operators and space lose meaning inside () stdout: stderr: zsh: parse error near `<' |
osh | 14 Operators and space lose meaning inside () [osh stdout] Expected 'true\n', got '' [osh status] Expected 0, got 2 stdout: stderr: [[ '< >' =~ (< >) ]] && echo true ^ [ stdin ]:1: Expected ]] |
osh_ALT | 14 Operators and space lose meaning inside () [osh_ALT stdout] Expected 'true\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: [[ '< >' =~ (< >) ]] && echo true ^ [ stdin ]:1: Expected ]] |
zsh | 15 Regex with | stdout: stderr: zsh: parse error near `|' |
zsh | 16 Regex to match literal brackets [] stdout: truestderr: zsh: failed to compile regex: Unmatched [ or [^ |
zsh | 17 Regex to match literals . ^ $ etc. stdout: true false false falsestderr: zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression |
bash | 18 Unquoted { is a regex parse error stdout: status=2stderr: |
zsh | 18 Unquoted { is a regex parse error stdout: status=1stderr: zsh: failed to compile regex: Invalid preceding regular expression |
bash | 19 Fatal error inside [[ =~ ]] stdout: status=1stderr: bash: line 1: 1 / 0 : division by 0 (error token is "0 ") |
zsh | 20 Quoted { and + stdout: yes ^ yes $ yes ) yes | --- yes . --- a 0 - 1 b 0 z 0 status=0stderr: zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Invalid preceding regular expression zsh: failed to compile regex: Unmatched ( or \( zsh: failed to compile regex: Trailing backslash |
zsh | 21 Escaped { stdout: stderr: zsh: failed to compile regex: Invalid preceding regular expression |
zsh | 22 Escaped { stored in variable first stdout: ['']stderr: |
zsh | 26 pattern a=(1) stdout: status=0stderr: zsh: x not found |