spec test index / oilshell.org
case | bash | mksh | osh | description |
0 | pass | pass | pass | Assignment Causes Array Decay |
1 | pass | pass | FAIL | Array Decay with IFS |
details | ||||
2 | pass | pass | pass | User arrays decay |
3 | pass | pass | FAIL | $a gives first element of array (TODO: osh should disallow) |
details | ||||
4 | pass | pass | pass | Assign to array index without initialization |
5 | pass | pass | pass | a[40] grows array |
6 | pass | pass | pass | array decays to string when comparing with [[ a = b ]] |
7 | pass | pass | ok | ++ on a whole array increments the first element (disallowed in OSH) |
details | ||||
8 | pass | N-I | pass | Apply vectorized operations on ${a[*]} |
details |
23 passed, 1 ok, 1 known unimplemented, 0 known bugs, 2 failed, 0 skipped
osh | 1 Array Decay with IFS [osh stdout] Expected "['[x y z]']\n", got "['[ y z]']\n" stdout: ['[ y z]']stderr: |
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 | 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 |