spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 7 | 7 | |
ok | 3 | 3 | |
total | 10 | 10 | |
case | osh | osh-cpp | description |
0 | pass | pass | Assignment Causes Array Decay |
1 | pass | pass | Array Decay with IFS |
2 | pass | pass | User arrays decay |
3 | ok | ok | strict_array: $array is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | ||
4 | ok | ok | strict_array: ${array} is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | ||
5 | pass | pass | Assign to array index without initialization |
6 | pass | pass | a[40] grows array |
7 | pass | pass | array decays to string when comparing with [[ a = b ]] |
8 | ok | ok | ++ on a whole array increments the first element (disallowed with strict_array) |
details | details | ||
9 | pass | pass | Apply vectorized operations on ${a[*]} |
14 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 3 strict_array: $array is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo $a ^~ [ stdin ]:4: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh-cpp | 3 strict_array: $array is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo $a ^~ [ stdin ]:4: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh | 4 strict_array: ${array} is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo ${a} ^~ [ stdin ]:4: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh-cpp | 4 strict_array: ${array} is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo ${a} ^~ [ stdin ]:4: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh | 8 ++ on a whole array increments the first element (disallowed with strict_array) stdout: stderr: (( a++ )) # doesn't make sense ^ [ stdin ]:4: fatal: Expected a value convertible to integer, got value.MaybeStrArray |
osh-cpp | 8 ++ on a whole array increments the first element (disallowed with strict_array) stdout: stderr: (( a++ )) # doesn't make sense ^ [ stdin ]:4: fatal: Expected a value convertible to integer, got value.MaybeStrArray |