spec test index / oilshell.org
| case | bash | mksh | zsh | osh | osh_ALT | description |
| 0 | pass | pass | N-I | pass | pass | Multiple right brackets inside expression |
| details | ||||||
| 1 | pass | pass | pass | pass | pass | Slicing of string with constants |
| 2 | pass | pass | pass | pass | pass | Slicing of string with variables |
| 3 | pass | pass | ok | FAIL | FAIL | Array index on LHS of assignment |
| details | details | details | ||||
| 4 | pass | pass | BUG | FAIL | FAIL | Array index on LHS with spaces |
| details | details | details | ||||
| 5 | pass | pass | ok | FAIL | FAIL | Array index on LHS with indices |
| details | details | details | ||||
| 6 | pass | BUG | BUG | pass | pass | Slicing of string with expressions |
| details | details | |||||
| 7 | pass | BUG | BUG | pass | pass | Ambiguous colon in slice |
| details | details | |||||
| 8 | pass | pass | pass | pass | pass | Triple parens should be disambiguated |
| 9 | pass | pass | pass | pass | pass | Quadruple parens should be disambiguated |
| 10 | pass | N-I | pass | pass | pass | Alternative $[] syntax |
| details |
40 passed, 2 ok, 2 known unimplemented, 5 known bugs, 3 failed, 0 skipped
| zsh | 0 Multiple right brackets inside expression stdout: stderr: |
| zsh | 3 Array index on LHS of assignment stdout: X 2 3stderr: |
| osh | 3 Array index on LHS of assignment [osh stdout] Expected '1 X 3\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[zero+5-4]=X', ['a[zero+5-4]=X'], ...): [Errno 2] No such file or directory
|
| osh_ALT | 3 Array index on LHS of assignment [osh_ALT stdout] Expected '1 X 3\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[zero+5-4]=X', ['a[zero+5-4]=X'], ...): [Errno 2] No such file or directory
|
| zsh | 4 Array index on LHS with spaces stdout: stderr: zsh: bad pattern: a[zero |
| osh | 4 Array index on LHS with spaces [osh stdout] Expected '1 X 3\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[zero', ['a[zero', '+', '5', '-', '4]=X'], ...): [Errno 2] No such file or directory
|
| osh_ALT | 4 Array index on LHS with spaces [osh_ALT stdout] Expected '1 X 3\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[zero', ['a[zero', '+', '5', '-', '4]=X'], ...): [Errno 2] No such file or directory
|
| zsh | 5 Array index on LHS with indices stdout: X 2 3stderr: |
| osh | 5 Array index on LHS with indices [osh stdout] Expected '1 2 X\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[a[1]]=X', ['a[a[1]]=X'], ...): [Errno 2] No such file or directory
|
| osh_ALT | 5 Array index on LHS with indices [osh_ALT stdout] Expected '1 2 X\n', got '1 2 3\n' stdout: 1 2 3stderr: Unexpected error in execvpe('a[a[1]]=X', ['a[a[1]]=X'], ...): [Errno 2] No such file or directory
|
| mksh | 6 Slicing of string with expressions stdout: stderr: /bin/mksh: <stdin>[3]: ${s:zero}: bad substitution
|
| zsh | 6 Slicing of string with expressions stdout: stderr: zsh: unrecognized modifier `z' |
| mksh | 7 Ambiguous colon in slice stdout: 2stderr: /bin/mksh: <stdin>[3]: ${s: 0 < 1 ? 2 : 0 : 1}: bad substitution
|
| zsh | 7 Ambiguous colon in slice stdout: 2stderr: zsh: bad math expression: ':' expected |
| mksh | 10 Alternative $[] syntax stdout: $[1 + 2] $[3 * 4]stderr: |