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