spec test index / oilshell.org
status | bash | mksh | osh | osh_ALT | |
pass | 10 | 9 | 7 | 7 | |
ok | 0 | 0 | 3 | 3 | |
N-I | 0 | 1 | 0 | 0 | |
total | 10 | 10 | 10 | 10 | |
case | bash | mksh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | Assignment Causes Array Decay |
1 | pass | pass | pass | pass | Array Decay with IFS |
2 | pass | pass | pass | pass | User arrays decay |
3 | pass | pass | ok | ok | strict_array: $array is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | ||||
4 | pass | pass | ok | ok | strict_array: ${array} is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | ||||
5 | pass | pass | pass | pass | Assign to array index without initialization |
6 | pass | pass | pass | pass | a[40] grows array |
7 | pass | pass | pass | pass | array decays to string when comparing with [[ a = b ]] |
8 | pass | pass | ok | ok | ++ on a whole array increments the first element (disallowed with strict_array) |
details | details | ||||
9 | pass | N-I | pass | pass | Apply vectorized operations on ${a[*]} |
details |
33 passed, 6 OK, 1 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_ALT | 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_ALT | 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_ALT | 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 |
mksh | 9 Apply vectorized operations on ${a[*]} stdout: stderr: mksh: <stdin>[3]: ${a[*]#-}: bad substitution |