spec test index / oilshell.org
status | bash | osh | osh_ALT | |
pass | 5 | 2 | 2 | |
ok | 0 | 1 | 1 | |
FAIL | 0 | 2 | 2 | |
total | 5 | 5 | 5 | |
case | bash | osh | osh_ALT | description |
0 | pass | pass | pass | var ref to array 'preHooks[@]' |
1 | pass | FAIL | FAIL | Same as above with set -u |
details | details | |||
2 | pass | FAIL | FAIL | ${!ref} to undefined array |
details | details | |||
3 | pass | pass | pass | ${!ref} to undefined string var is fatal, INCONSISTENT with array |
4 | pass | ok | ok | export with dynamic var name += |
details | details |
9 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 1 Same as above with set -u [osh stdout] Expected 'show\n', got "show\n[]\n[]\nshow\n['foo', 'bar', 'baz']\n['foo bar', 'baz']\n" [osh status] Expected 1, got 0 stdout: show [] [] show ['foo', 'bar', 'baz'] ['foo bar', 'baz']stderr: |
osh_ALT | 1 Same as above with set -u [osh_ALT stdout] Expected 'show\n', got "show\n[]\n[]\nshow\n['foo', 'bar', 'baz']\n['foo bar', 'baz']\n" [osh_ALT status] Expected 1, got 0 stdout: show [] [] show ['foo', 'bar', 'baz'] ['foo bar', 'baz']stderr: |
osh | 2 ${!ref} to undefined array [osh stdout] Expected '[]\n', got '' [osh status] Expected 0, got 1 stdout: stderr: preHooks[@] ^~~~~~~~ [ contents of var 'hookSlice' at line 6 of [ stdin ] ]:1: fatal: Undefined array 'preHooks' |
osh_ALT | 2 ${!ref} to undefined array [osh_ALT stdout] Expected '[]\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: preHooks[@] ^~~~~~~~ [ contents of var 'hookSlice' at line 6 of [ stdin ] ]:1: fatal: Undefined array 'preHooks' |
osh | 4 export with dynamic var name += stdout: declare -x NIX_LDFLAGS_foo=' -Lone/lib64'stderr: |
osh_ALT | 4 export with dynamic var name += stdout: declare -x NIX_LDFLAGS_foo=' -Lone/lib64'stderr: |