Results for array-compat.test.sh

statusoshosh_.pyosh_.cc
pass 777
ok 333
total101010
caseoshosh_.pyosh_.ccdescription
0pass pass pass Assignment Causes Array Decay
1pass pass pass Array Decay with IFS
2pass pass pass User arrays decay
3ok ok ok $array is not valid in OSH, is ${array[0]} in ksh/bash
detailsdetailsdetails
4ok ok ok ${array} is not valid in OSH, is ${array[0]} in ksh/bash
detailsdetailsdetails
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 ]]
8ok ok ok ++ on a whole array increments the first element (disallowed in OSH)
detailsdetailsdetails
9pass pass pass Apply vectorized operations on ${a[*]}
21 passed, 9 OK, 0 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_.py3 $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_.cc3 $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 *)

dumb_alloc:
	gNumNew = 1761
	gNumDelete = 119
	gMemPos = 61008

	gNumMalloc = 67
	gNumFree = 0
	gMemPos2 = 9488
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_.py4 ${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_.cc4 ${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 *)

dumb_alloc:
	gNumNew = 1765
	gNumDelete = 120
	gMemPos = 61104

	gNumMalloc = 68
	gNumFree = 0
	gMemPos2 = 9504
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
osh_.py8 ++ 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
osh_.cc8 ++ 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

dumb_alloc:
	gNumNew = 1728
	gNumDelete = 113
	gMemPos = 60512

	gNumMalloc = 55
	gNumFree = 0
	gMemPos2 = 9312