Results for named-ref.test.sh

casebashmkshoshdescription
0pass pass FAIL pass array by reference
details
1pass BUG FAIL pass assoc array by reference
detailsdetails
2pass BUG FAIL pass local array by reference, relying on DYNAMIC SCOPING
detailsdetails

4 passed, 0 ok, 0 known unimplemented, 2 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

osh0 pass array by reference

[osh stdout] Expected 'zo\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    echo "${array[$idx]}"
            ^~~~~
[ stdin ]:4: fatal: Can't index string 'array' with integer
mksh1 pass assoc array by reference

stdout:
[monday]=eggs
stderr:
osh1 pass assoc array by reference

[osh stdout] Expected 'jam\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    echo "${array[$idx]}"
            ^~~~~
[ stdin ]:4: fatal: Can't index string 'array' with integer
mksh2 pass local array by reference, relying on DYNAMIC SCOPING

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[7]: syntax error: '(' unexpected
osh2 pass local array by reference, relying on DYNAMIC SCOPING

[osh stdout] Expected 'zo\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    echo "${array[$idx]}"
            ^~~~~
[ stdin ]:4: fatal: Can't index string 'array' with integer