spec test index / oilshell.org
status | dash | bash | mksh | zsh | ash | osh | osh_ALT | |
pass | 4 | 9 | 5 | 6 | 4 | 8 | 8 | |
ok | 5 | 0 | 5 | 3 | 5 | 2 | 2 | |
N-I | 1 | 0 | 0 | 0 | 1 | 0 | 0 | |
BUG | 0 | 1 | 0 | 1 | 0 | 0 | 0 | |
total | 10 | 10 | 10 | 10 | 10 | 10 | 10 | |
case | dash | bash | mksh | zsh | ash | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | pass | pass | echo keyword |
1 | pass | pass | pass | pass | pass | pass | pass | if/else |
2 | N-I | pass | pass | pass | N-I | pass | pass | Turn an array into an integer. |
details | details | |||||||
3 | ok | pass | ok | pass | ok | pass | pass | assign readonly -- one line |
details | details | details | ||||||
4 | ok | BUG | ok | pass | ok | pass | pass | assign readonly -- multiple lines |
details | details | details | details | |||||
5 | ok | pass | ok | pass | ok | pass | pass | assign readonly -- multiple lines -- set -o posix |
details | details | details | ||||||
6 | ok | pass | pass | ok | ok | pass | pass | unset readonly -- one line |
details | details | details | ||||||
7 | ok | pass | pass | ok | ok | pass | pass | unset readonly -- multiple lines |
details | details | details | ||||||
8 | pass | pass | ok | ok | pass | ok | ok | First word like foo$x() and foo$[1+2] (regression) |
details | details | details | details | |||||
9 | pass | pass | ok | BUG | pass | ok | ok | Function names |
details | details | details | details |
44 passed, 22 OK, 2 not implemented, 2 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 2 Turn an array into an integer. stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 2 Turn an array into an integer. stdout: stderr: ash: syntax error: unexpected "(" |
dash | 3 assign readonly -- one line stdout: stderr: dash: 1: x: is read only |
mksh | 3 assign readonly -- one line stdout: stderr: mksh: <stdin>[1]: read-only: x |
ash | 3 assign readonly -- one line stdout: stderr: ash: x: is read only |
dash | 4 assign readonly -- multiple lines stdout: stderr: dash: 2: x: is read only |
bash | 4 assign readonly -- multiple lines stdout: histderr: bash: line 2: x: readonly variable |
mksh | 4 assign readonly -- multiple lines stdout: stderr: mksh: <stdin>[2]: read-only: x |
ash | 4 assign readonly -- multiple lines stdout: stderr: ash: x: is read only |
dash | 5 assign readonly -- multiple lines -- set -o posix stdout: stderr: dash: 1: set: Illegal option -o posix |
mksh | 5 assign readonly -- multiple lines -- set -o posix stdout: stderr: mksh: <stdin>[3]: read-only: x |
ash | 5 assign readonly -- multiple lines -- set -o posix stdout: stderr: ash: set: line 1: illegal option -o posix ash: x: is read only |
dash | 6 unset readonly -- one line stdout: stderr: dash: 1: unset: x: is read only |
zsh | 6 unset readonly -- one line stdout: stderr: zsh: read-only variable: x |
ash | 6 unset readonly -- one line stdout: stderr: ash: unset: line 1: x: is read only |
dash | 7 unset readonly -- multiple lines stdout: stderr: dash: 2: unset: x: is read only |
zsh | 7 unset readonly -- multiple lines stdout: stderr: zsh: read-only variable: x |
ash | 7 unset readonly -- multiple lines stdout: stderr: ash: unset: line 2: x: is read only |
mksh | 8 First word like foo$x() and foo$[1+2] (regression) stdout: stderr: mksh: <stdin>[1]: syntax error: '"z"' unexpected |
zsh | 8 First word like foo$x() and foo$[1+2] (regression) stdout: stderr: zsh: unknown file attribute: z |
osh | 8 First word like foo$x() and foo$[1+2] (regression) stdout: DONEstderr: foo$identity('z') ^~~ [ stdin ]:1: 'fooz' not found foo$[1+2] ^~~ [ stdin ]:3: 'foo3' not found |
osh_ALT | 8 First word like foo$x() and foo$[1+2] (regression) stdout: DONEstderr: foo$identity('z') ^~~ [ stdin ]:1: 'fooz' not found foo$[1+2] ^~~ [ stdin ]:3: 'foo3' not found |
mksh | 9 Function names stdout: stderr: mksh: <stdin>[1]: foo$x: invalid function name |
zsh | 9 Function names stdout: stderr: |
osh | 9 Function names stdout: stderr: foo$x() { ^~~ [ stdin ]:1: fatal: Expected function named 'x', got (value.Undef) |
osh_ALT | 9 Function names stdout: stderr: foo$x() { ^~~ [ stdin ]:1: fatal: Expected function named 'x', got (value.Undef) |