Results for array-compat.test.sh

casebashmkshoshosh_ALTosh-byterundescription
0pass pass pass pass pass Assignment Causes Array Decay
1pass pass FAIL FAIL FAIL Array Decay with IFS
detailsdetailsdetails
2pass pass FAIL FAIL FAIL User arrays decay
detailsdetailsdetails
3pass pass FAIL FAIL FAIL $a gives first element of array
detailsdetailsdetails
4pass pass pass pass pass Assign to array index without initialization
5pass pass pass pass pass a[40] grows array
6pass pass pass pass pass array decays to string when comparing with [[ a = b ]]
7pass pass FAIL FAIL FAIL Increment array variables
detailsdetailsdetails
8pass N-I pass pass pass Apply vectorized operations on ${a[*]}
details

32 passed, 0 ok, 1 known unimplemented, 0 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh1 Array Decay with IFS

[osh stdout] Expected "['[x y z]']\n", got "['[ y z]']\n"

stdout:
['[ y z]']
stderr:
osh_ALT1 Array Decay with IFS

[osh_ALT stdout] Expected "['[x y z]']\n", got "['[ y z]']\n"

stdout:
['[ y z]']
stderr:
osh-byterun1 Array Decay with IFS

[osh-byterun stdout] Expected "['[x y z]']\n", got "['[ y z]']\n"

stdout:
['[ y z]']
stderr:
osh2 User arrays decay

[osh stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got "['x', 'y', 'z']\n"
[osh status] Expected 0, got 1

stdout:
['x', 'y', 'z']
stderr:
Line 7 of '<stdin>'
  argv.py "${b[@]}"
           ^~
Can't index string with @: (value.Str s:'x y z')
osh_ALT2 User arrays decay

[osh_ALT stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got "['x', 'y', 'z']\n"
[osh_ALT status] Expected 0, got 1

stdout:
['x', 'y', 'z']
stderr:
Line 7 of '<stdin>'
  argv.py "${b[@]}"
           ^~
Can't index string with @: (value.Str s:'x y z')
osh-byterun2 User arrays decay

[osh-byterun stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got "['x', 'y', 'z']\n"
[osh-byterun status] Expected 0, got 1

stdout:
['x', 'y', 'z']
stderr:
Line 7 of '<stdin>'
  argv.py "${b[@]}"
           ^~
Can't index string with @: (value.Str s:'x y z')
osh3 $a gives first element of array

[osh stdout] Expected '1\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh_ALT3 $a gives first element of array

[osh_ALT stdout] Expected '1\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh-byterun3 $a gives first element of array

[osh-byterun stdout] Expected '1\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh7 Increment array variables

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

stdout:
stderr: 
*** Error has no source location info ***
Can't use assignment like ++ or += on arrays
osh_ALT7 Increment array variables

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

stdout:
stderr: 
*** Error has no source location info ***
Can't use assignment like ++ or += on arrays
osh-byterun7 Increment array variables

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

stdout:
stderr: 
*** Error has no source location info ***
Can't use assignment like ++ or += on arrays
mksh8 Apply vectorized operations on ${a[*]}

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: ${a[*]#-}: bad substitution