Results for nix-idioms.test.sh

statusoshosh-cpp
pass 22
ok 11
FAIL 22
total55
caseoshosh-cppdescription
0pass pass var ref to array 'preHooks[@]'
1FAIL FAIL Same as above with set -u
detailsdetails
2FAIL FAIL ${!ref} to undefined array
detailsdetails
3pass pass ${!ref} to undefined string var is fatal, INCONSISTENT with array
4ok ok export with dynamic var name +=
detailsdetails
4 passed, 2 OK, 0 not implemented, 0 BUG, 4 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:
osh-cpp1 Same as above with set -u

[osh-cpp stdout] Expected 'show\n', got "show\n[]\n[]\nshow\n['foo', 'bar', 'baz']\n['foo bar', 'baz']\n"
[osh-cpp 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'
osh-cpp2 ${!ref} to undefined array

[osh-cpp stdout] Expected '[]\n', got ''
[osh-cpp 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:
osh-cpp4 export with dynamic var name +=

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