spec test index / oilshell.org
status | bash | mksh | zsh | osh | |
pass | 9 | 8 | 5 | 10 | |
ok | 0 | 0 | 1 | 1 | |
N-I | 0 | 3 | 4 | 0 | |
BUG | 2 | 0 | 1 | 0 | |
total | 11 | 11 | 11 | 11 | |
case | bash | mksh | zsh | osh | description |
0 | pass | pass | pass | pass | (( )) result |
1 | pass | pass | pass | pass | negative number is true |
2 | pass | pass | pass | pass | (( )) in if statement |
3 | pass | pass | pass | pass | (( )) |
4 | pass | pass | ok | pass | (( )) with arrays |
details | |||||
5 | pass | pass | pass | pass | (( )) with error |
6 | pass | pass | N-I | pass | bash and mksh: V in (( a[K] = V )) gets coerced to integer |
details | |||||
7 | pass | N-I | N-I | ok | bash: K in (( A[K] = V )) is a constant string |
details | details | details | |||
8 | BUG | pass | BUG | pass | BUG: (( V = A[K] )) doesn't retrieve the right value |
details | details | ||||
9 | pass | N-I | N-I | pass | bash: V in (( A["K"] = V )) gets coerced to integer |
details | details | ||||
10 | BUG | N-I | N-I | pass | literal strings not properly supported in ( )) |
details | details | details |
32 passed, 2 OK, 7 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped
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: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: typeset: -A: unknown option /home/andy/git/oilshell/oil/_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 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: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/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"]= |
bash | 10 literal strings not properly supported in ( )) stdout: 0 0stderr: |
mksh | 10 literal strings not properly supported in ( )) stdout: 0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: declare: not found |
zsh | 10 literal strings not properly supported in ( )) stdout: 0stderr: zsh: bad math expression: operand expected at `'y' ' |