spec test index / oilshell.org
| status | bash | zsh | mksh | ash | osh | |
| pass | 11 | 9 | 8 | 5 | 11 | |
| N-I | 0 | 1 | 2 | 4 | 0 | |
| BUG | 0 | 1 | 1 | 2 | 0 | |
| total | 11 | 11 | 11 | 11 | 11 | |
| case | bash | zsh | mksh | ash | osh | description |
| 0 | pass | pass | pass | pass | pass | recursive arith: one level |
| 1 | pass | pass | pass | pass | pass | recursive arith: two levels |
| 2 | pass | pass | BUG | N-I | pass | recursive arith: short circuit &&, || |
| details | details | |||||
| 3 | pass | pass | pass | BUG | pass | recursive arith: short circuit ?: |
| details | ||||||
| 4 | pass | BUG | pass | BUG | pass | recursive arith: side effects |
| details | details | |||||
| 5 | pass | pass | N-I | N-I | pass | recursive arith: recursion |
| details | details | |||||
| 6 | pass | pass | pass | N-I | pass | recursive arith: array elements |
| details | ||||||
| 7 | pass | pass | pass | pass | pass | dynamic arith varname: assign |
| 8 | pass | pass | pass | pass | pass | dynamic arith varname: read |
| 9 | pass | pass | pass | pass | pass | dynamic arith varname: copy/add |
| 10 | pass | N-I | N-I | N-I | pass | is-array with ${var@a} |
| details | details | details |
44 passed, 0 OK, 7 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped
| mksh | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
| ash | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
| ash | 3 recursive arith: short circuit ?: stdout: 123:321 321:321stderr: |
| zsh | 4 recursive arith: side effects stdout: 0:123stderr: |
| ash | 4 recursive arith: side effects stdout: 0:123stderr: |
| mksh | 5 recursive arith: recursion stdout: stderr: mksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop' |
| ash | 5 recursive arith: recursion stdout: stderr: ash: expression recursion loop detected |
| ash | 6 recursive arith: array elements stdout: stderr: ash: text[1]=d=123: not found ash: text[2]=text[1]: not found ash: text[3]=text[2]: not found ash: arithmetic syntax error |
| zsh | 10 is-array with ${var@a} stdout: stderr: ble/is-array: bad substitution |
| mksh | 10 is-array with ${var@a} stdout: stderr: |
| ash | 10 is-array with ${var@a} stdout: stderr: |