spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 3 | 3 | 2 | |
ok | 1 | 1 | 1 | |
FAIL | 1 | 1 | 2 | |
total | 5 | 5 | 5 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | FAIL | var ref to array 'preHooks[@]' |
details | ||||
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 |
8 passed, 3 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.cc | 0 var ref to array 'preHooks[@]' [osh_.cc stdout] Expected "show\n[]\n[]\nshow\n['foo', 'bar', 'baz']\n['foo bar', 'baz']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed. |
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' dumb_alloc: gNumNew = 2235 gNumDelete = 184 gMemPos = 76224 gNumMalloc = 211 gNumFree = 0 gMemPos2 = 12080 |
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: dumb_alloc: gNumNew = 3201 gNumDelete = 392 gMemPos = 106800 gNumMalloc = 401 gNumFree = 3 gMemPos2 = 15264 |