spec test index / oilshell.org
status | bash | osh | |
pass | 5 | 3 | |
ok | 0 | 1 | |
FAIL | 0 | 1 | |
total | 5 | 5 | |
case | bash | osh | description |
0 | pass | pass | var ref to array 'preHooks[@]' |
1 | pass | pass | Same as above with set -u |
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 |
8 passed, 1 OK, 0 not implemented, 0 BUG, 1 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 | 4 export with dynamic var name += stdout: declare -x NIX_LDFLAGS_foo=' -Lone/lib64'stderr: |