spec test index / oilshell.org
56 passed, 3 OK, 11 not implemented, 3 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
zsh | 4 (( )) with arrays stdout: 9stderr: |
zsh | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer stdout: stderr: zsh: command not found: shopt zsh: a: assignment to invalid subscript range zsh: no matches found: a["key"]= |
mksh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: mksh: <stdin>[3]: typeset: -A: unknown option mksh: <stdin>[6]: "5": unexpected '"' |
zsh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: zsh: no matches found: A[5]= |
osh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^~ [ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc. |
osh_ALT | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^~ [ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc. |
bash | 8 BUG: (( V = A[K] )) doesn't retrieve the right value stdout: V=0stderr: |
zsh | 8 BUG: (( V = A[K] )) doesn't retrieve the right value stdout: V=0stderr: |
mksh | 9 bash: V in (( A["K"] = V )) gets coerced to integer stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[4]: typeset: -A: unknown option |
zsh | 9 bash: V in (( A["K"] = V )) gets coerced to integer stdout: stderr: zsh: command not found: shopt zsh: no matches found: A["key"]= |
mksh | 10 literal strings inside (( )) stdout: 0stderr: mksh: <stdin>[1]: declare: not found |
zsh | 10 literal strings inside (( )) stdout: 42stderr: zsh: bad math expression: operand expected at `'y' ' |
zsh | 12 Assigning whole raray (( b = a )) stdout: 4 5 6stderr: zsh: bad math expression: operator expected at `5 6' |
osh | 12 Assigning whole raray (( b = a )) [osh stdout] Expected '4 5 6\n4\n', got '4 5 6\n' [osh status] Expected 0, got 1 stdout: 4 5 6stderr: echo "${b[@]}" ^~ [ stdin ]:6: fatal: Can't index string with @ |
osh_ALT | 12 Assigning whole raray (( b = a )) [osh_ALT stdout] Expected '4 5 6\n4\n', got '4 5 6\n' [osh_ALT status] Expected 0, got 1 stdout: 4 5 6stderr: echo "${b[@]}" ^~ [ stdin ]:6: fatal: Can't index string with @ |
mksh | 13 set associative array stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
zsh | 13 set associative array stdout: 0stderr: zsh: no matches found: [foo]=bar |
mksh | 14 Example of incrementing associative array entry with var key (ble.sh) stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
zsh | 14 Example of incrementing associative array entry with var key (ble.sh) stdout: stderr: zsh: no matches found: [foo]=42 zsh: A: assignment to invalid subscript range zsh: bad math expression: operand expected at `'foo'' |