spec test index / oilshell.org
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 | FAIL | FAIL | $a gives first element of array (TODO: osh should disallow) |
details | details | ||||
4 | pass | pass | pass | pass | Assign to array index without initialization |
5 | pass | pass | pass | pass | a[40] grows array |
6 | pass | pass | pass | pass | array decays to string when comparing with [[ a = b ]] |
7 | pass | pass | ok | ok | ++ on a whole array increments the first element (disallowed in OSH) |
details | details | ||||
8 | pass | N-I | pass | pass | Apply vectorized operations on ${a[*]} |
details |
31 passed, 2 ok, 1 known unimplemented, 0 known bugs, 1 failed, 0 skipped
osh | 3 $a gives first element of array (TODO: osh should disallow) [osh stdout] Expected '1\n', got '1 2 3\n' stdout: 1 2 3stderr: |
osh_ALT | 3 $a gives first element of array (TODO: osh should disallow) [osh_ALT stdout] Expected '1\n', got '1 2 3\n' stdout: 1 2 3stderr: |
osh | 7 ++ 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 |
osh_ALT | 7 ++ 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 | 8 Apply vectorized operations on ${a[*]} stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${a[*]#-}: bad substitution |