Results for nix-idioms.test.sh

statusbashosh
pass 52
ok 01
FAIL 02
total55
casebashoshdescription
0pass pass var ref to array 'preHooks[@]'
1pass FAIL Same as above with set -u
details
2pass FAIL ${!ref} to undefined array
details
3pass pass ${!ref} to undefined string var is fatal, INCONSISTENT with array
4pass 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

Details on runs that didn't PASS

osh1 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:
osh2 ${!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'
osh4 export with dynamic var name +=

stdout:
declare -x NIX_LDFLAGS_foo=' -Lone/lib64'
stderr: