spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 2 | 2 | |
FAIL | 7 | 7 | |
total | 9 | 9 | |
case | osh | osh-cpp | description |
0 | FAIL | FAIL | typeset a[3]=4 |
details | details | ||
1 | FAIL | FAIL | typeset -a a[1]=a a[3]=c |
details | details | ||
2 | FAIL | FAIL | local a[3]=4 |
details | details | ||
3 | FAIL | FAIL | readonly a[7]=8 |
details | details | ||
4 | FAIL | FAIL | export a[7]=8 |
details | details | ||
5 | pass | pass | 'builtin' prefix is allowed on assignments |
6 | pass | pass | 'command' prefix is allowed on assignments |
7 | FAIL | FAIL | 'builtin' prefix and array is a parse error |
details | details | ||
8 | FAIL | FAIL | 'command' prefix and array is a parse error |
details | details |
4 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped 7 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-cpp | 0 typeset a[3]=4 [osh-cpp stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh-cpp 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-cpp | 1 typeset -a a[1]=a a[3]=c [osh-cpp stdout] Expected "['x', 'z']\n", got '' [osh-cpp 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' |
osh-cpp | 2 local a[3]=4 [osh-cpp stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh-cpp 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' |
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' |
osh-cpp | 3 readonly a[7]=8 [osh-cpp stdout] Expected "status=0\n['7', '8']\n", got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: readonly b[7]=8 ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'b[7]=8' |
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' |
osh-cpp | 4 export a[7]=8 [osh-cpp stdout] Expected 'status=2\n[]\nNone\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: export a[7]=8 ^~ [ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[7]=8' |
osh | 7 'builtin' prefix and array is a parse error [osh stdout] Expected u'', got 'len=3\n' [osh status] Expected 2, got 0 stdout: len=3stderr: |
osh-cpp | 7 'builtin' prefix and array is a parse error [osh-cpp stdout] Expected u'', got 'len=3\n' [osh-cpp status] Expected 2, got 0 stdout: len=3stderr: |
osh | 8 'command' prefix and array is a parse error [osh stdout] Expected u'', got 'len=3\n' [osh status] Expected 2, got 0 stdout: len=3stderr: |
osh-cpp | 8 'command' prefix and array is a parse error [osh-cpp stdout] Expected u'', got 'len=3\n' [osh-cpp status] Expected 2, got 0 stdout: len=3stderr: |