spec test index / oilshell.org
case | bash | mksh | zsh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | (( )) result |
1 | pass | pass | pass | pass | pass | negative number is true |
2 | pass | pass | pass | pass | pass | (( )) in if statement |
3 | pass | pass | pass | pass | pass | (( )) |
4 | pass | pass | ok | pass | pass | (( )) with arrays |
details | ||||||
5 | pass | pass | pass | pass | pass | (( )) with error |
6 | pass | pass | N-I | FAIL | FAIL | bash and mksh: V in (( a[K] = V )) gets coerced to integer |
details | details | details | ||||
7 | pass | N-I | N-I | FAIL | FAIL | bash: K in (( A[K] = V )) is a constant string |
details | details | details | details | |||
8 | BUG | pass | BUG | pass | pass | BUG: (( V = A[K] )) doesn't retrieve the right value |
details | details | |||||
9 | pass | N-I | N-I | FAIL | FAIL | bash: V in (( A[K] = V )) gets coerced to integer |
details | details | details | details | |||
10 | pass | N-I | N-I | FAIL | FAIL | literal strings not properly supported |
details | details | details | details |
37 passed, 1 ok, 7 known unimplemented, 2 known bugs, 4 failed, 0 skipped
zsh | 4 (( )) with arrays stdout: 9stderr: |
zsh | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer stdout: stderr: zsh: a: assignment to invalid subscript range zsh: no matches found: a["key"]= |
osh | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer [osh stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got '' [osh status] Expected 0, got 1 stdout: stderr: (( a[K] = V )) ^ [ stdin ]:4: fatal: Invalid integer constant 'value' |
osh_ALT | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer [osh_ALT stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: (( a[K] = V )) ^ [ stdin ]:4: fatal: Invalid integer constant 'value' |
mksh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: typeset: -A: unknown option _tmp/spec-bin/mksh: <stdin>[5]: "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 [osh stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got '' [osh status] Expected 0, got 1 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 [osh_ALT stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got '' [osh_ALT status] Expected 0, got 1 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: _tmp/spec-bin/mksh: <stdin>[3]: typeset: -A: unknown option |
zsh | 9 bash: V in (( A[K] = V )) gets coerced to integer stdout: stderr: zsh: no matches found: A["key"]= |
osh | 9 bash: V in (( A[K] = V )) gets coerced to integer [osh stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [osh status] Expected 0, got 1 stdout: stderr: (( A[K] = V )) ^ [ stdin ]:4: fatal: Invalid integer constant 'value' |
osh_ALT | 9 bash: V in (( A[K] = V )) gets coerced to integer [osh_ALT stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: (( A[K] = V )) ^ [ stdin ]:4: fatal: Invalid integer constant 'value' |
mksh | 10 literal strings not properly supported stdout: 0stderr: _tmp/spec-bin/mksh: <stdin>[1]: declare: not found |
zsh | 10 literal strings not properly supported stdout: 0stderr: zsh: bad math expression: operand expected at `'y' ' |
osh | 10 literal strings not properly supported [osh stdout] Expected '0 0\n', got '' [osh status] Expected 0, got 1 stdout: stderr: (( x = A['x'] )) ^ [ stdin ]:3: fatal: Invalid integer constant 'x' |
osh_ALT | 10 literal strings not properly supported [osh_ALT stdout] Expected '0 0\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: (( x = A['x'] )) ^ [ stdin ]:3: fatal: Invalid integer constant 'x' |