| status | osh | osh-cpp | |
| pass | 19 | 18 | |
| FAIL | 0 | 1 | |
| total | 19 | 19 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | Tilde expansions in RHS of [k]=v (BashArray) |
| 1 | pass | pass | Tilde expansions in RHS of [k]=v (BashAssoc) |
| 2 | pass | pass | index increments without [k]= (BashArray) |
| 3 | pass | pass | [k]=$v and [k]="$@" (BashArray) |
| 4 | pass | pass | [k]=$v and [k]="$@" (BashAssoc) |
| 5 | pass | pass | append to element (BashArray) |
| 6 | pass | pass | append to element (BashAssoc) |
| 7 | pass | pass | non-index forms of element (BashAssoc) |
| 8 | pass | pass | Evaluation order (1) |
| 9 | pass | pass | Evaluation order (2) |
| 10 | pass | pass | Evaluation order (3) |
| 11 | pass | pass | [k1]=v1 (BashArray) |
| 12 | pass | pass | [k1]=v1 (BashAssoc) |
| 13 | pass | pass | [k1]=v1 looking like brace expansions (BashAssoc) |
| 14 | pass | pass | [k1]=v1 looking like brace expansions (BashArray) |
| 15 | pass | FAIL | BashArray cannot be changed to BashAssoc and vice versa |
| details | |||
| 16 | pass | pass | (strict_array) s+=() |
| 17 | pass | pass | (strict_array) declare -A s+=() |
| 18 | pass | pass | (strict_array) assoc=(key value ...) is not allowed |
37 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh-cpp | 15 BashArray cannot be changed to BashAssoc and vice versa [osh-cpp stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got "status=1\n['1', '2', '3', '4']\nstatus=1\n" [osh-cpp status] Expected 0 Got 2 stdout: status=1 ['1', '2', '3', '4'] status=1stderr: declare -A a=([a]=x [b]=y [c]=z)
^~
[ eval arg at line 2 of [ stdin ] ]:1
eval 'declare -A a=([a]=x [b]=y [c]=z)'
^~~~
[ stdin ]:2: fatal: Can't convert type BashArray into BashAssoc
declare -a A=(1 2 3 4)
^~
[ eval arg at line 7 of [ stdin ] ]:1
eval 'declare -a A=(1 2 3 4)'
^~~~
[ stdin ]:7: fatal: Can't convert type BashAssoc into BashArray
argv.py $(printf '%s\n' "${A[@]}" | sort)
^
[ stdin ]:9: Invalid word while parsing command list
|