spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 7 | 7 | 3 | |
ok | 3 | 3 | 3 | |
FAIL | 0 | 0 | 4 | |
total | 10 | 10 | 10 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | FAIL | Assignment Causes Array Decay |
details | ||||
1 | pass | pass | FAIL | Array Decay with IFS |
details | ||||
2 | pass | pass | FAIL | User arrays decay |
details | ||||
3 | ok | ok | ok | $array is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | details | ||
4 | ok | ok | ok | ${array} is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | details | ||
5 | pass | pass | pass | Assign to array index without initialization |
6 | pass | pass | pass | a[40] grows array |
7 | pass | pass | pass | array decays to string when comparing with [[ a = b ]] |
8 | ok | ok | ok | ++ on a whole array increments the first element (disallowed in OSH) |
details | details | details | ||
9 | pass | pass | FAIL | Apply vectorized operations on ${a[*]} |
details |
17 passed, 9 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
osh_.cc | 0 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_.cc | 1 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_.cc | 2 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 |
osh | 3 $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_.py | 3 $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_.cc | 3 $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 | 4 ${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_.py | 4 ${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_.cc | 4 ${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 | 8 ++ 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_.py | 8 ++ 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_.cc | 8 ++ 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_.cc | 9 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 |