Results for array-compat.test.sh

statusoshosh_.pyosh_.cc
pass 733
ok 333
FAIL 044
total101010
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL Assignment Causes Array Decay
detailsdetails
1pass FAIL FAIL Array Decay with IFS
detailsdetails
2pass FAIL FAIL User arrays decay
detailsdetails
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 FAIL FAIL Apply vectorized operations on ${a[*]}
detailsdetails
13 passed, 9 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 Assignment Causes Array Decay

[osh_.py stdout] Expected "['[x', 'y', 'z]']\n['[x y z]']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "[$@]"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "$var"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc0 Assignment Causes Array Decay

[osh_.cc stdout] Expected "['[x', 'y', 'z]']\n['[x y z]']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "[$@]"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "$var"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py1 Array Decay with IFS

[osh_.py stdout] Expected "['[x y z]']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "$var"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc1 Array Decay with IFS

[osh_.cc stdout] Expected "['[x y z]']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "$var"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py2 User arrays decay

[osh_.py stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:6: 'argv.py' not found
  argv.py "${b}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${c[@]}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
osh_.cc2 User arrays decay

[osh_.cc stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:6: 'argv.py' not found
  argv.py "${b}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${c[@]}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
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 *)
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 *)
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
osh_.py9 Apply vectorized operations on ${a[*]}

[osh_.py stdout] Expected "['x- y-y z-']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[*]#-}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc9 Apply vectorized operations on ${a[*]}

[osh_.cc stdout] Expected "['x- y-y z-']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[*]#-}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found