Results for nix-idioms.test.sh

statusbashoshosh_ALT
pass 522
ok 011
FAIL 022
total555
casebashoshosh_ALTdescription
0pass pass pass var ref to array 'preHooks[@]'
1pass FAIL FAIL Same as above with set -u
detailsdetails
2pass FAIL FAIL ${!ref} to undefined array
detailsdetails
3pass pass pass ${!ref} to undefined string var is fatal, INCONSISTENT with array
4pass ok ok export with dynamic var name +=
detailsdetails
9 passed, 2 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:
osh_ALT1 Same as above with set -u

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

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

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