status | bash | mksh | osh | |
pass | 6 | 6 | 4 | |
ok-2 | 0 | 2 | 0 | |
ok | 2 | 0 | 0 | |
N-I | 1 | 0 | 0 | |
BUG | 0 | 1 | 0 | |
FAIL | 0 | 0 | 5 | |
total | 9 | 9 | 9 | |
case | bash | mksh | osh | description |
0 | pass | pass | FAIL | typeset a[3]=4 |
details | ||||
1 | pass | pass | FAIL | typeset -a a[1]=a a[3]=c |
details | ||||
2 | pass | pass | FAIL | local a[3]=4 |
details | ||||
3 | N-I | pass | FAIL | readonly a[7]=8 |
details | details | |||
4 | pass | BUG | FAIL | export a[7]=8 |
details | details | |||
5 | pass | pass | pass | 'builtin' prefix is allowed on assignments |
6 | pass | pass | pass | 'command' prefix is allowed on assignments |
7 | ok | ok-2 | pass | is 'builtin' prefix and array allowed? OSH is smarter |
details | details | |||
8 | ok | ok-2 | pass | is 'command' prefix and array allowed? OSH is smarter |
details | details |
16 passed, 4 OK, 1 not implemented, 1 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 0 typeset a[3]=4 [osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: typeset a[3]=4 a[5]=6 ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[3]=4' |
osh | 1 typeset -a a[1]=a a[3]=c [osh stdout] Expected "['x', 'z']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: typeset -a a[1*1]=x a[1+2]=z ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[1*1]=x' |
osh | 2 local a[3]=4 [osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: local a[3]=4 a[5]=6 ^~ [ stdin ]:2: fatal: Assignment builtin expected NAME=value, got 'a[3]=4' |
bash | 3 readonly a[7]=8 stdout: status=1 []stderr: bash: line 1: readonly: `b[7]': not a valid identifier |
osh | 3 readonly a[7]=8 [osh stdout] Expected "status=0\n['7', '8']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: readonly b[7]=8 ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'b[7]=8' |
mksh | 4 export a[7]=8 stdout: status=0 ['7', '8'] Nonestderr: |
osh | 4 export a[7]=8 [osh stdout] Expected 'status=2\n[]\nNone\n', got '' [osh status] Expected 0, got 1 stdout: stderr: export a[7]=8 ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[7]=8' |
bash | 7 is 'builtin' prefix and array allowed? OSH is smarter stdout: stderr: bash: line 1: syntax error near unexpected token `(' bash: line 1: `builtin typeset a=(1 2 3)' |
mksh | 7 is 'builtin' prefix and array allowed? OSH is smarter stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
bash | 8 is 'command' prefix and array allowed? OSH is smarter stdout: stderr: bash: line 1: syntax error near unexpected token `(' bash: line 1: `command typeset a=(1 2 3)' |
mksh | 8 is 'command' prefix and array allowed? OSH is smarter stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |