Results for nix-idioms.test.sh

statusoshosh_.pyosh_.cc
pass 333
ok 111
FAIL 111
total555
caseoshosh_.pyosh_.ccdescription
0pass pass pass var ref to array 'preHooks[@]'
1pass pass pass Same as above with set -u
2FAIL FAIL FAIL ${!ref} to undefined array
detailsdetailsdetails
3pass pass pass ${!ref} to undefined string var is fatal, INCONSISTENT with array
4ok ok ok export with dynamic var name +=
detailsdetailsdetails
9 passed, 3 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh2 ${!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_.py2 ${!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_.cc2 ${!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'
osh4 export with dynamic var name +=

stdout:
declare -x NIX_LDFLAGS_foo=' -Lone/lib64'
stderr:
osh_.py4 export with dynamic var name +=

stdout:
declare -x NIX_LDFLAGS_foo=' -Lone/lib64'
stderr:
osh_.cc4 export with dynamic var name +=

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