Results for array-compat.test.sh

statusbashmkshoshosh_ALT
pass 10977
ok 0033
N-I 0100
total10101010
casebashmkshoshosh_ALTdescription
0pass pass pass pass Assignment Causes Array Decay
1pass pass pass pass Array Decay with IFS
2pass pass pass pass User arrays decay
3pass pass ok ok $array is not valid in OSH, is ${array[0]} in ksh/bash
detailsdetails
4pass pass ok ok ${array} is not valid in OSH, is ${array[0]} in ksh/bash
detailsdetails
5pass pass pass pass Assign to array index without initialization
6pass pass pass pass a[40] grows array
7pass pass pass pass array decays to string when comparing with [[ a = b ]]
8pass pass ok ok ++ on a whole array increments the first element (disallowed in OSH)
detailsdetails
9pass N-I pass pass Apply vectorized operations on ${a[*]}
details
33 passed, 6 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 *)
osh_ALT3 $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 *)
osh_ALT4 ${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: Can't use assignment like ++ or += on arrays
osh_ALT8 ++ on a whole array increments the first element (disallowed in OSH)

stdout:
stderr: 
  (( a++ ))  # doesn't make sense
  ^~
[ stdin ]:2: fatal: Can't use assignment like ++ or += on arrays
mksh9 Apply vectorized operations on ${a[*]}

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