spec test index / oilshell.org
case | dash | bash | mksh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | Bad var sub |
1 | pass | ok | ok | pass | pass | Bad braced var sub -- not allowed |
details | details | |||||
2 | BUG | BUG | BUG | pass | pass | Bad var sub caught at parse time |
details | details | details | ||||
3 | pass | pass | ok | pass | pass | Incomplete while |
details | ||||||
4 | pass | pass | ok | pass | pass | Incomplete for |
details | ||||||
5 | pass | pass | ok | pass | pass | Incomplete if |
details | ||||||
6 | pass | pass | ok | FAIL | FAIL | do unexpected |
details | details | details | ||||
7 | pass | pass | ok | pass | pass | } is a parse error |
details | ||||||
8 | BUG | pass | ok | FAIL | FAIL | { is its own word, needs a space |
details | details | details | details | |||
9 | pass | pass | pass | pass | pass | } on the second line |
10 | pass | BUG | ok | pass | pass | Invalid for loop variable name |
details | details | |||||
11 | pass | pass | pass | pass | pass | bad var name globally isn't parsed like an assignment |
12 | pass | ok | ok | FAIL | FAIL | bad var name in export |
details | details | details | details | |||
13 | BUG | BUG | BUG | pass | pass | bad var name in local |
details | details | details | ||||
14 | pass | pass | ok | FAIL | FAIL | misplaced parentheses are not a subshell |
details | details | details |
47 passed, 12 ok, 0 known unimplemented, 8 known bugs, 4 failed, 0 skipped
bash | 1 Bad braced var sub -- not allowed stdout: stderr: /bin/bash: line 1: ${%}: bad substitution |
mksh | 1 Bad braced var sub -- not allowed stdout: stderr: /bin/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: /bin/mksh: <stdin>[1]: syntax error: 'while' unmatched |
mksh | 4 Incomplete for stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: 'newline' unexpected |
mksh | 5 Incomplete if stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: 'if' unmatched |
mksh | 6 do unexpected stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: 'do' unexpected |
osh | 6 do unexpected [osh status] Expected 2, got 0 stdout: stderr: |
osh_ALT | 6 do unexpected [osh_ALT status] Expected 2, got 0 stdout: stderr: |
mksh | 7 } is a parse error stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '}' unexpected |
dash | 8 { is its own word, needs a space stdout: status=127stderr: /bin/dash: 1: {ls: not found |
mksh | 8 { is its own word, needs a space stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '}' unexpected |
osh | 8 { is its own word, needs a space [osh status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('{ls', ['{ls'], ...): [Errno 2] No such file or directory |
osh_ALT | 8 { is its own word, needs a space [osh_ALT status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('{ls', ['{ls'], ...): [Errno 2] No such file or directory |
bash | 10 Invalid for loop variable name stdout: donestderr: /bin/bash: line 3: `i.j': not a valid identifier |
mksh | 10 Invalid for loop variable name stdout: stderr: /bin/mksh: <stdin>[1]: for: bad identifier |
bash | 12 bad var name in export stdout: stderr: /bin/bash: line 1: export: `FOO-BAR=foo': not a valid identifier |
mksh | 12 bad var name in export stdout: stderr: /bin/mksh: <stdin>[1]: export: FOO-BAR=foo: is not an identifier |
osh | 12 bad var name in export [osh status] Expected 2, got 0 stdout: stderr: |
osh_ALT | 12 bad var name in export [osh_ALT status] Expected 2, got 0 stdout: stderr: |
dash | 13 bad var name in local stdout: stderr: |
bash | 13 bad var name in local stdout: stderr: |
mksh | 13 bad var name in local stdout: stderr: |
mksh | 14 misplaced parentheses are not a subshell stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
osh | 14 misplaced parentheses are not a subshell [osh status] Expected 2, got 127 stdout: astderr: Unexpected error in execvpe('b', ['b'], ...): [Errno 2] No such file or directory |
osh_ALT | 14 misplaced parentheses are not a subshell [osh_ALT status] Expected 2, got 127 stdout: astderr: Unexpected error in execvpe('b', ['b'], ...): [Errno 2] No such file or directory |