spec test index / oilshell.org
status | bash | mksh | osh | |
pass | 10 | 9 | 7 | |
ok | 0 | 0 | 3 | |
N-I | 0 | 1 | 0 | |
total | 10 | 10 | 10 | |
case | bash | mksh | osh | description |
0 | pass | pass | pass | Assignment Causes Array Decay |
1 | pass | pass | pass | Array Decay with IFS |
2 | pass | pass | pass | User arrays decay |
3 | pass | pass | ok | $array is not valid in OSH, is ${array[0]} in ksh/bash |
details | ||||
4 | pass | pass | ok | ${array} is not valid in OSH, is ${array[0]} in ksh/bash |
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 | pass | pass | ok | ++ on a whole array increments the first element (disallowed in OSH) |
details | ||||
9 | pass | N-I | pass | Apply vectorized operations on ${a[*]} |
details |
26 passed, 3 OK, 1 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
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 | 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: Can't use assignment like ++ or += on arrays |
mksh | 9 Apply vectorized operations on ${a[*]} stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${a[*]#-}: bad substitution |