spec test index / oilshell.org
status | bash | osh | |
pass | 5 | 2 | |
ok | 0 | 1 | |
FAIL | 0 | 2 | |
total | 5 | 5 | |
case | bash | osh | description |
0 | pass | pass | var ref to array 'preHooks[@]' |
1 | pass | FAIL | Same as above with set -u |
details | |||
2 | pass | FAIL | ${!ref} to undefined array |
details | |||
3 | pass | pass | ${!ref} to undefined string var is fatal, INCONSISTENT with array |
4 | pass | ok | export with dynamic var name += |
details |
7 passed, 1 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 | 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 | 4 export with dynamic var name += stdout: declare -x NIX_LDFLAGS_foo=' -Lone/lib64'stderr: |