| status | bash | dash | ash | zsh | mksh | ksh | toysh | sush | brush | osh | |
| pass | 3 | 0 | 0 | 7 | 1 | 1 | 0 | 3 | 3 | 2 | |
| FAIL | 4 | 7 | 7 | 0 | 6 | 6 | 7 | 4 | 4 | 5 | |
| total | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | |
| case | bash | dash | ash | zsh | mksh | ksh | toysh | sush | brush | osh | description |
| 0 | pass | FAIL | FAIL | pass | pass | pass | FAIL | pass | pass | pass | TODO: SETUP should be shared |
| details | details | details | |||||||||
| 1 | pass | FAIL | FAIL | pass | FAIL | FAIL | FAIL | pass | pass | FAIL | retrieve key |
| details | details | details | details | details | details | ||||||
| 2 | FAIL | FAIL | FAIL | pass | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | set key |
| details | details | details | details | details | details | details | details | details | |||
| 3 | FAIL | FAIL | FAIL | pass | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | iterate over keys |
| details | details | details | details | details | details | details | details | details | |||
| 4 | FAIL | FAIL | FAIL | pass | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | iterate over both keys and values |
| details | details | details | details | details | details | details | details | details | |||
| 5 | FAIL | FAIL | FAIL | pass | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL | get length |
| details | details | details | details | details | details | details | details | details | |||
| 6 | pass | FAIL | FAIL | pass | FAIL | FAIL | FAIL | pass | pass | pass | index by integer does not work |
| details | details | details | details | details |
20 passed, 0 OK, 0 not implemented, 0 BUG, 50 failed, 0 timeouts, 0 cases skipped 5 failed under osh
| dash | 0 TODO: SETUP should be shared [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 0 TODO: SETUP should be shared [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| toysh | 0 TODO: SETUP should be shared [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: aa |
| dash | 1 retrieve key [dash stdout] Expected 'b\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 1 retrieve key [ash stdout] Expected 'b\n' Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 1 retrieve key [mksh stdout] Expected 'b\n' Got 'aa\n' stdout: aastderr: mksh: <stdin>[1]: typeset: -A: unknown option |
| ksh | 1 retrieve key [ksh stdout] Expected 'b\n' Got 'aa\n' stdout: aastderr: E: ksh: <stdin>[1]: typeset: -A: unknown option |
| toysh | 1 retrieve key [toysh stdout] Expected 'b\n' Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: aa |
| osh | 1 retrieve key [osh stdout] Expected 'b\n' Got '' [osh status] Expected 0 Got 1 stdout: stderr: echo ${a[aa]}
^~
[ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
|
| bash | 2 set key [bash stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got "['c', 'b', 'XX', 'bar']\n" stdout: ['c', 'b', 'XX', 'bar']stderr: |
| dash | 2 set key [dash stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 2 set key [ash stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 2 set key [mksh stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n" stdout: ['XX', 'b', 'foo', 'bar', 'a+1', 'c']stderr: mksh: <stdin>[1]: typeset: -A: unknown option |
| ksh | 2 set key [ksh stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n" stdout: ['XX', 'b', 'foo', 'bar', 'a+1', 'c']stderr: E: ksh: <stdin>[1]: typeset: -A: unknown option |
| toysh | 2 set key [toysh stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: aa |
| sush | 2 set key [sush stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got "['XX', 'c', 'b', 'bar']\n" stdout: ['XX', 'c', 'b', 'bar']stderr: |
| brush | 2 set key [brush stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got "['XX', 'c', 'b', 'bar']\n" stdout: ['XX', 'c', 'b', 'bar']stderr: |
| osh | 2 set key [osh stdout] Expected "['bar', 'b', 'c', 'XX']\n" Got '' [osh status] Expected 0 Got 1 stdout: stderr: a[X]=XX ^~ [ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101) |
| bash | 3 iterate over keys [bash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [bash status] Expected 0 Got 1 stdout: stderr: bash: line 3: ${(@k)assoc}: bad substitution
|
| dash | 3 iterate over keys [dash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 3 iterate over keys [ash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 3 iterate over keys [mksh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [mksh status] Expected 0 Got 1 stdout: stderr: mksh: <stdin>[1]: typeset: -A: unknown option
mksh: <stdin>[5]: ${(@k)assoc}: bad substitution
|
| ksh | 3 iterate over keys [ksh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [ksh status] Expected 0 Got 1 stdout: stderr: E: ksh: <stdin>[1]: typeset: -A: unknown option
E: ksh: <stdin>[5]: ${(@k)assoc}: bad substitution
|
| toysh | 3 iterate over keys [toysh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: k1 |
| sush | 3 iterate over keys [sush stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [sush status] Expected 0 Got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${(@k)assoc}': bad substitution
|
| brush | 3 iterate over keys [brush stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '${(@k)assoc}: [${(@k)assoc}]\n' stdout: ${(@k)assoc}: [${(@k)assoc}]
stderr: |
| osh | 3 iterate over keys [osh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [osh status] Expected 0 Got 1 stdout: stderr: for k in "${(@k)assoc}"; do
^~~~~~
[ stdin ]:3: fatal: ZSH var subs are parsed, but can't be evaluated
|
| bash | 4 iterate over both keys and values [bash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [bash status] Expected 0 Got 2 stdout: stderr: bash: line 3: syntax error near unexpected token `v'
bash: line 3: `for k v ("${(@kv)assoc}"); do'
|
| dash | 4 iterate over both keys and values [dash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 4 iterate over both keys and values [ash stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 4 iterate over both keys and values [mksh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [mksh status] Expected 0 Got 1 stdout: stderr: mksh: <stdin>[1]: typeset: -A: unknown option mksh: <stdin>[3]: syntax error: 'v' unexpected |
| ksh | 4 iterate over both keys and values [ksh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [ksh status] Expected 0 Got 1 stdout: stderr: E: ksh: <stdin>[1]: typeset: -A: unknown option E: ksh: <stdin>[3]: syntax error: unexpected 'v' |
| toysh | 4 iterate over both keys and values [toysh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: k1 |
| sush | 4 iterate over both keys and values [sush stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got ': \n' [sush status] Expected 0 Got 2 stdout: :stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: syntax error near unexpected token: v /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: syntax error near unexpected token: done |
| brush | 4 iterate over both keys and values [brush stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got ': \n' [brush status] Expected 0 Got 2 stdout: :stderr: [31merror:[39m main: syntax error near token `v' (line 1 col 7) [31merror:[39m main: syntax error near token ` ' (line 1 col 5) |
| osh | 4 iterate over both keys and values [osh stdout] Expected 'k1: v1\nk2: v2\nk3: v3\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: for k v ("${(@kv)assoc}"); do
^
[ stdin ]:3: Unexpected word after for loop variable
|
| bash | 5 get length [bash stdout] Expected '3 2\n' Got '0 2\n' stdout: 0 2stderr: |
| dash | 5 get length [dash stdout] Expected '3 2\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 5 get length [ash stdout] Expected '3 2\n' Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 5 get length [mksh stdout] Expected '3 2\n' Got '2 2\n' stdout: 2 2stderr: mksh: <stdin>[1]: typeset: -A: unknown option |
| ksh | 5 get length [ksh stdout] Expected '3 2\n' Got '2 2\n' stdout: 2 2stderr: E: ksh: <stdin>[1]: typeset: -A: unknown option |
| toysh | 5 get length [toysh stdout] Expected '3 2\n' Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: k1 |
| sush | 5 get length [sush stdout] Expected '3 2\n' Got '0 2\n' stdout: 0 2stderr: |
| brush | 5 get length [brush stdout] Expected '3 2\n' Got '0 2\n' stdout: 0 2stderr: |
| osh | 5 get length [osh stdout] Expected '3 2\n' Got '' [osh status] Expected 0 Got 1 stdout: stderr: echo ${#assoc} ${#assoc[k1]}
^~
[ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
|
| dash | 6 index by integer does not work [dash stdout] Expected "['']\n" Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 1: typeset: not found
dash: 2: Syntax error: "(" unexpected
|
| ash | 6 index by integer does not work [ash stdout] Expected "['']\n" Got '' [ash status] Expected 0 Got 2 stdout: stderr: ash: typeset: not found
ash: syntax error: unexpected "("
|
| mksh | 6 index by integer does not work [mksh stdout] Expected "['']\n" Got "['v1']\n" stdout: ['v1']stderr: mksh: <stdin>[1]: typeset: -A: unknown option |
| ksh | 6 index by integer does not work [ksh stdout] Expected "['']\n" Got "['v1']\n" stdout: ['v1']stderr: E: ksh: <stdin>[1]: typeset: -A: unknown option |
| toysh | 6 index by integer does not work [toysh stdout] Expected "['']\n" Got '' [toysh status] Expected 0 Got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: k1 |