spec test index / oilshell.org
94 passed, 24 OK, 1 not implemented, 5 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
bash | 1 Bad braced var sub -- not allowed stdout: stderr: bash: line 1: ${%}: bad substitution |
mksh | 1 Bad braced var sub -- not allowed stdout: stderr: mksh: <stdin>[1]: ${%}: bad substitution |
dash | 2 Bad var sub caught at parse time stdout: okstderr: |
bash | 2 Bad var sub caught at parse time stdout: okstderr: |
mksh | 2 Bad var sub caught at parse time stdout: okstderr: |
mksh | 3 Incomplete while stdout: stderr: mksh: <stdin>[1]: syntax error: 'while' unmatched |
mksh | 4 Incomplete for stdout: stderr: mksh: <stdin>[1]: syntax error: 'newline' unexpected |
mksh | 5 Incomplete if stdout: stderr: mksh: <stdin>[1]: syntax error: 'if' unmatched |
mksh | 6 do unexpected stdout: stderr: mksh: <stdin>[1]: syntax error: 'do' unexpected |
mksh | 7 } is a parse error stdout: stderr: mksh: <stdin>[1]: syntax error: '}' unexpected |
mksh | 8 { is its own word, needs a space stdout: stderr: mksh: <stdin>[1]: syntax error: '}' unexpected |
bash | 10 Invalid for loop variable name stdout: donestderr: bash: line 3: `i.j': not a valid identifier |
mksh | 10 Invalid for loop variable name stdout: stderr: mksh: <stdin>[1]: for: bad identifier |
dash | 12 bad var name in export stdout: stderr: dash: 1: export: FOO-BAR: bad variable name |
dash | 13 bad var name in local stdout: stderr: dash: 2: FOO-BAR: bad variable name |
mksh | 14 misplaced parentheses are not a subshell stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
mksh | 15 incomplete command sub stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unmatched |
mksh | 16 incomplete backticks stdout: stderr: mksh: <stdin>[2]: no closing quote |
mksh | 17 misplaced ;; stdout: stderr: mksh: <stdin>[1]: syntax error: ';;' unexpected |
dash | 18 empty clause in [[ stdout: stderr: dash: 1: [[: not found |
mksh | 18 empty clause in [[ stdout: stderr: mksh: <stdin>[1]: syntax error: '||' expression expected |
bash | 19 interactive parse error (regression) stdout: stderr: bash: syntax error near unexpected token `)' |
mksh | 19 interactive parse error (regression) stdout: stderr: mksh: syntax error: ')' unexpected |
bash | 20 array literal inside array is a parse error stdout: len=0stderr: bash: line 1: syntax error near unexpected token `(' bash: line 1: `a=( inside=() )' |
mksh | 20 array literal inside array is a parse error stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
osh | 20 array literal inside array is a parse error [osh status] Expected 2, got 1 stdout: stderr: a=( inside=() ) ^ [ stdin ]:1: fatal: Unexpected array literal |
osh_ALT | 20 array literal inside array is a parse error [osh_ALT status] Expected 2, got 1 stdout: stderr: a=( inside=() ) ^ [ stdin ]:1: fatal: Unexpected array literal |
mksh | 21 array literal inside loop is a parse error stdout: stderr: mksh: <stdin>[2]: syntax error: '(' unexpected |
osh | 21 array literal inside loop is a parse error [osh status] Expected 2, got 0 stdout: stderr: |
osh_ALT | 21 array literal inside loop is a parse error [osh_ALT status] Expected 2, got 0 stdout: stderr: |
mksh | 22 array literal in case stdout: stderr: mksh: <stdin>[2]: syntax error: '(' unexpected |
osh | 22 array literal in case [osh status] Expected 2, got 0 stdout: stderr: |
osh_ALT | 22 array literal in case [osh_ALT status] Expected 2, got 0 stdout: stderr: |
mksh | 23 %foo=() is parse error (regression) stdout: stderr: mksh: <stdin>[2]: %foo=: invalid function name |
osh | 24 leading =word is not allowed regardless of shopt -s parse_equals stdout: stderr: =word ^ [ stdin ]:1: =word isn't allowed. Hint: add a space after =, or quote it |
osh_ALT | 24 leading =word is not allowed regardless of shopt -s parse_equals stdout: stderr: =word ^ [ stdin ]:1: =word isn't allowed. Hint: add a space after =, or quote it |