Results for array-compat.test.sh

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

Details on runs that didn't PASS

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 -11

stdout:
stderr: 
set 5
Unhandled SimpleCommand
osh_.cc1 Array Decay with IFS

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

stdout:
stderr: 
set 5
osh_.cc2 User arrays decay

[osh_.cc stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got "(cmd_value.Argv argv:[argv.py x y z] arg_spids:[55 57 57 57])\n(cmd_value.Argv argv:[argv.py 'x y z'] arg_spids:[66 68])\n(cmd_value.Argv argv:[argv.py x YYY z] arg_spids:[74 76 76 76])\n"

stdout:
(cmd_value.Argv argv:[argv.py x y z] arg_spids:[55 57 57 57])
(cmd_value.Argv argv:[argv.py 'x y z'] arg_spids:[66 68])
(cmd_value.Argv argv:[argv.py x YYY z] arg_spids:[74 76 76 76])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
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_.cc9 Apply vectorized operations on ${a[*]}

[osh_.cc stdout] Expected "['x- y-y z-']\n", got "(cmd_value.Argv argv:[argv.py 'x- y-y z-'] arg_spids:[15 17])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'x- y-y z-'] arg_spids:[15 17])
stderr:
Unhandled SimpleCommand