Results for named-ref.test.sh

casebashmkshoshosh_ALTosh-byterundescription
0pass pass FAIL FAIL FAIL pass array by reference
detailsdetailsdetails
1pass BUG FAIL FAIL FAIL pass assoc array by reference
detailsdetailsdetailsdetails
2pass BUG FAIL FAIL FAIL pass local array by reference, relying on DYNAMIC SCOPING
detailsdetailsdetailsdetails

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: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh_ALT0 pass array by reference

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

stdout:
stderr: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh-byterun0 pass array by reference

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

stdout:
stderr: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
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: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh_ALT1 pass assoc array by reference

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

stdout:
stderr: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh-byterun1 pass assoc array by reference

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

stdout:
stderr: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
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: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh_ALT2 pass local array by reference, relying on DYNAMIC SCOPING

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

stdout:
stderr: 
Line 4 of '<stdin>'
    echo "${array[$idx]}"
            ^~~~~
Can't index string 'array' with integer
osh-byterun2 pass local array by reference, relying on DYNAMIC SCOPING

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

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