Results for array-compat.test.sh

statusbashmkshosh
pass 1097
ok 003
N-I 010
total101010
casebashmkshoshdescription
0pass pass pass Assignment Causes Array Decay
1pass pass pass Array Decay with IFS
2pass pass pass User arrays decay
3pass pass ok $array is not valid in OSH, is ${array[0]} in ksh/bash
details
4pass pass ok ${array} is not valid in OSH, is ${array[0]} in ksh/bash
details
5pass pass pass Assign to array index without initialization
6pass pass pass a[40] grows array
7pass pass pass array decays to string when comparing with [[ a = b ]]
8pass pass ok ++ on a whole array increments the first element (disallowed in OSH)
details
9pass N-I pass Apply vectorized operations on ${a[*]}
details
26 passed, 3 OK, 1 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh3 $array is not valid in OSH, is ${array[0]} in ksh/bash

stdout:
stderr: 
  echo $a
       ^~
[ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh4 ${array} is not valid in OSH, is ${array[0]} in ksh/bash

stdout:
stderr: 
  echo ${a}
       ^~
[ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh8 ++ on a whole array increments the first element (disallowed in OSH)

stdout:
stderr: 
  (( a++ ))  # doesn't make sense
     ^
[ stdin ]:2: fatal: Expected a value convertible to integer, got value.MaybeStrArray
mksh9 Apply vectorized operations on ${a[*]}

stdout:
stderr: 
mksh: <stdin>[3]: ${a[*]#-}: bad substitution