| status | bash | osh | |
| pass | 12 | 19 | |
| N-I | 3 | 0 | |
| BUG | 4 | 0 | |
| total | 19 | 19 | |
| case | bash | osh | description |
| 0 | pass | pass | Tilde expansions in RHS of [k]=v (BashArray) |
| 1 | BUG | pass | Tilde expansions in RHS of [k]=v (BashAssoc) |
| details | |||
| 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 | BUG | pass | append to element (BashAssoc) |
| details | |||
| 7 | BUG | pass | non-index forms of element (BashAssoc) |
| details | |||
| 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 | BUG | pass | [k1]=v1 looking like brace expansions (BashArray) |
| details | |||
| 15 | pass | pass | BashArray cannot be changed to BashAssoc and vice versa |
| 16 | N-I | pass | (strict_array) s+=() |
| details | |||
| 17 | N-I | pass | (strict_array) declare -A s+=() |
| details | |||
| 18 | N-I | pass | (strict_array) assoc=(key value ...) is not allowed |
| details |
31 passed, 0 OK, 3 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped
| bash | 1 Tilde expansions in RHS of [k]=v (BashAssoc) stdout: ~ ~:~:~stderr: |
| bash | 6 append to element (BashAssoc) stdout: keys: ['hello'] vals: ['2'] keys: ['hello'] vals: ['2:34:56']stderr: |
| bash | 7 non-index forms of element (BashAssoc) stdout: status=0 keys: ['j'] vals: ['1']stderr: bash: line 2: a: 2: must use subscript when assigning associative array bash: line 2: a: 3: must use subscript when assigning associative array bash: line 2: a: 4: must use subscript when assigning associative array |
| bash | 14 [k1]=v1 looking like brace expansions (BashArray) stdout: [k2]=-a-stderr: |
| bash | 16 (strict_array) s+=() stdout: status=0 declare -a s1=([0]="1" [1]="2" [2]="3" [3]="4") status=0 declare -a s2=([0]="world" [1]="1" [2]="2" [3]="3" [4]="4")stderr: |
| bash | 17 (strict_array) declare -A s+=() stdout: status=0 declare -A s1=([b]="y" [a]="x" ) status=0 declare -A s2=([0]="world" [b]="y" [a]="x" )stderr: |
| bash | 18 (strict_array) assoc=(key value ...) is not allowed stdout: declare -A a=([3]="4" [1]="2" )stderr: |