Results for array-literal.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 120010008519
N-I 3000000000
BUG 4000000000
FAIL 019191819191911140
total19191919191919191919
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Tilde expansions in RHS of [k]=v (BashArray)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
1BUG FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Tilde expansions in RHS of [k]=v (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass index increments without [k]= (BashArray)
detailsdetailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass [k]=$v and [k]="$@" (BashArray)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
4pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass [k]=$v and [k]="$@" (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetails
5pass FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL pass append to element (BashArray)
detailsdetailsdetailsdetailsdetailsdetailsdetails
6BUG FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL pass append to element (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
7BUG FAIL FAIL pass FAIL FAIL FAIL FAIL FAIL pass non-index forms of element (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
8pass FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL pass Evaluation order (1)
detailsdetailsdetailsdetailsdetailsdetailsdetails
9pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Evaluation order (2)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
10pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Evaluation order (3)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
11pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass [k1]=v1 (BashArray)
detailsdetailsdetailsdetailsdetailsdetails
12pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass [k1]=v1 (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetails
13pass FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL pass [k1]=v1 looking like brace expansions (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetailsdetails
14BUG FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass [k1]=v1 looking like brace expansions (BashArray)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
15pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass BashArray cannot be changed to BashAssoc and vice versa
detailsdetailsdetailsdetailsdetailsdetailsdetails
16N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass (strict_array) s+=()
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
17N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass (strict_array) declare -A s+=()
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
18N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass (strict_array) assoc=(key value ...) is not allowed
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
45 passed, 0 OK, 3 not implemented, 4 BUG, 138 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 Tilde expansions in RHS of [k]=v (BashArray)

[dash stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 2: Syntax error: "(" unexpected
ash0 Tilde expansions in RHS of [k]=v (BashArray)

[ash stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh0 Tilde expansions in RHS of [k]=v (BashArray)

[zsh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [2]=~
mksh0 Tilde expansions in RHS of [k]=v (BashArray)

[mksh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '\n\n'

stdout:

stderr:
ksh0 Tilde expansions in RHS of [k]=v (BashArray)

[ksh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '\n\n'

stdout:

stderr:
toysh0 Tilde expansions in RHS of [k]=v (BashArray)

[toysh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [2]=~
sush0 Tilde expansions in RHS of [k]=v (BashArray)

[sush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '/home/user\n/home/user:~:~\n'

stdout:
/home/user
/home/user:~:~
stderr:
brush0 Tilde expansions in RHS of [k]=v (BashArray)

[brush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '/home/user\n/home/user:~:~\n'

stdout:
/home/user
/home/user:~:~
stderr:
bash1 Tilde expansions in RHS of [k]=v (BashAssoc)

stdout:
~
~:~:~
stderr:
dash1 Tilde expansions in RHS of [k]=v (BashAssoc)

[dash stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 2: declare: not found
dash: 3: Syntax error: "(" unexpected
ash1 Tilde expansions in RHS of [k]=v (BashAssoc)

[ash stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh1 Tilde expansions in RHS of [k]=v (BashAssoc)

[zsh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '\n\n'

stdout:

stderr:
zsh: no matches found: [home]=~
mksh1 Tilde expansions in RHS of [k]=v (BashAssoc)

[mksh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[2]: declare: not found
mksh: <stdin>[3]: syntax error: '(' unexpected
ksh1 Tilde expansions in RHS of [k]=v (BashAssoc)

[ksh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: declare: inaccessible or not found
E: ksh: <stdin>[3]: syntax error: unexpected '('
toysh1 Tilde expansions in RHS of [k]=v (BashAssoc)

[toysh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 3: sh: syntax error: )
sush1 Tilde expansions in RHS of [k]=v (BashAssoc)

[sush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '/home/user\n/home/user:~:~\n'

stdout:
/home/user
/home/user:~:~
stderr:
brush1 Tilde expansions in RHS of [k]=v (BashAssoc)

[brush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '/home/user\n/home/user:~:~\n'

stdout:
/home/user
/home/user:~:~
stderr:
dash2 index increments without [k]= (BashArray)

[dash stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash2 index increments without [k]= (BashArray)

[ash stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh2 index increments without [k]= (BashArray)

[zsh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [100]=1
mksh2 index increments without [k]= (BashArray)

[mksh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got "keys: ['0', '1', '2', '3']\nvals: ['[100]=1', '2', '3', '4']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7']\nvals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']\n"

stdout:
keys: ['0', '1', '2', '3']
vals: ['[100]=1', '2', '3', '4']
keys: ['0', '1', '2', '3', '4', '5', '6', '7']
vals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']
stderr:
ksh2 index increments without [k]= (BashArray)

[ksh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got "keys: ['0', '1', '2', '3']\nvals: ['[100]=1', '2', '3', '4']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7']\nvals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']\n"

stdout:
keys: ['0', '1', '2', '3']
vals: ['[100]=1', '2', '3', '4']
keys: ['0', '1', '2', '3', '4', '5', '6', '7']
vals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']
stderr:
toysh2 index increments without [k]= (BashArray)

[toysh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: [100]=1
dash3 [k]=$v and [k]="$@" (BashArray)

[dash stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 3: Syntax error: "(" unexpected
ash3 [k]=$v and [k]="$@" (BashArray)

[ash stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh3 [k]=$v and [k]="$@" (BashArray)

[zsh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [i]=1 2 3
mksh3 [k]=$v and [k]="$@" (BashArray)

[mksh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=1', '2', '3']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '2', '3', '[i]=3 5 7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=1', '2', '3']
keys: ['0', '1', '2', '3']
vals: ['1', '2', '3', '[i]=3 5 7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
stderr:
ksh3 [k]=$v and [k]="$@" (BashArray)

[ksh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=1', '2', '3']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '2', '3', '[i]=3 5 7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=1', '2', '3']
keys: ['0', '1', '2', '3']
vals: ['1', '2', '3', '[i]=3 5 7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
stderr:
toysh3 [k]=$v and [k]="$@" (BashArray)

[toysh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 3: sh: syntax error: $v
sush3 [k]=$v and [k]="$@" (BashArray)

[sush stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\n"

stdout:
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '3']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '3 5 7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
stderr:
brush3 [k]=$v and [k]="$@" (BashArray)

[brush stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2']\nvals: ['1 2 3', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\n"

stdout:
keys: ['0', '1', '2']
vals: ['1 2 3', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
stderr:
dash4 [k]=$v and [k]="$@" (BashAssoc)

[dash stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 3: declare: not found
dash: 4: Syntax error: "(" unexpected
ash4 [k]=$v and [k]="$@" (BashAssoc)

[ash stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh4 [k]=$v and [k]="$@" (BashAssoc)

[zsh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [i]=1 2 3
mksh4 [k]=$v and [k]="$@" (BashAssoc)

[mksh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got "keys: ['0', '1', '2']\nvals: ['[i]=1', '2', '3']\nkeys: ['0']\nvals: ['[i]=3 5 7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[i]=1', '2', '3']
keys: ['0']
vals: ['[i]=3 5 7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
stderr:
mksh: <stdin>[3]: declare: not found
ksh4 [k]=$v and [k]="$@" (BashAssoc)

[ksh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got "keys: ['0', '1', '2']\nvals: ['[i]=1', '2', '3']\nkeys: ['0']\nvals: ['[i]=3 5 7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[i]=1', '2', '3']
keys: ['0']
vals: ['[i]=3 5 7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
stderr:
E: ksh: <stdin>[3]: declare: inaccessible or not found
toysh4 [k]=$v and [k]="$@" (BashAssoc)

[toysh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 4: sh: syntax error: [i]=$v
dash5 append to element (BashArray)

[dash stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 2: Syntax error: "(" unexpected
ash5 append to element (BashArray)

[ash stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh5 append to element (BashArray)

[zsh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [hello]=1
mksh5 append to element (BashArray)

[mksh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
ksh5 append to element (BashArray)

[ksh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
toysh5 append to element (BashArray)

[toysh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [hello]=1
brush5 append to element (BashArray)

[brush stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
bash6 append to element (BashAssoc)

stdout:
keys: ['hello']
vals: ['2']
keys: ['hello']
vals: ['2:34:56']
stderr:
dash6 append to element (BashAssoc)

[dash stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: declare: not found
dash: 3: Syntax error: "(" unexpected
ash6 append to element (BashAssoc)

[ash stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh6 append to element (BashAssoc)

[zsh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [hello]=1
mksh6 append to element (BashAssoc)

[mksh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
mksh: <stdin>[1]: declare: not found
ksh6 append to element (BashAssoc)

[ksh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
E: ksh: <stdin>[1]: declare: inaccessible or not found
toysh6 append to element (BashAssoc)

[toysh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 3: sh: syntax error: [hello]=1
brush6 append to element (BashAssoc)

[brush stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['[hello]+=2', 'hello']\nvals: ['', '1']\nkeys: ['[hello]+=2', '[hello]+=:34', 'hello']\nvals: ['', '[hello]+=:56', '1']\n"

stdout:
keys: ['[hello]+=2', 'hello']
vals: ['', '1']
keys: ['[hello]+=2', '[hello]+=:34', 'hello']
vals: ['', '[hello]+=:56', '1']
stderr:
bash7 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
dash7 non-index forms of element (BashAssoc)

[dash status] Expected 1 Got 2

stdout:
stderr: 
dash: 1: declare: not found
dash: 2: Syntax error: "(" unexpected
ash7 non-index forms of element (BashAssoc)

[ash status] Expected 1 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
mksh7 non-index forms of element (BashAssoc)

[mksh stdout] Expected '' Got "status=0\nkeys: ['0', '1', '2', '3']\nvals: ['[j]=1', '2', '3', '4']\n"
[mksh status] Expected 1 Got 0

stdout:
status=0
keys: ['0', '1', '2', '3']
vals: ['[j]=1', '2', '3', '4']
stderr:
mksh: <stdin>[1]: declare: not found
ksh7 non-index forms of element (BashAssoc)

[ksh stdout] Expected '' Got "status=0\nkeys: ['0', '1', '2', '3']\nvals: ['[j]=1', '2', '3', '4']\n"
[ksh status] Expected 1 Got 0

stdout:
status=0
keys: ['0', '1', '2', '3']
vals: ['[j]=1', '2', '3', '4']
stderr:
E: ksh: <stdin>[1]: declare: inaccessible or not found
toysh7 non-index forms of element (BashAssoc)

[toysh status] Expected 1 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [j]=1
sush7 non-index forms of element (BashAssoc)

[sush stdout] Expected '' Got "status=0\nkeys: ['j']\nvals: ['1']\n"
[sush status] Expected 1 Got 0

stdout:
status=0
keys: ['j']
vals: ['1']
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: a: 2: must use subscript when assigning associative array
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: a: 3: must use subscript when assigning associative array
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: a: 4: must use subscript when assigning associative array
brush7 non-index forms of element (BashAssoc)

[brush stdout] Expected '' Got "status=0\nkeys: ['2', '4', 'j']\nvals: ['3', '', '1']\n"
[brush status] Expected 1 Got 0

stdout:
status=0
keys: ['2', '4', 'j']
vals: ['3', '', '1']
stderr:
dash8 Evaluation order (1)

[dash stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 2: Syntax error: "(" unexpected
ash8 Evaluation order (1)

[ash stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh8 Evaluation order (1)

[zsh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [100+i++]=1
mksh8 Evaluation order (1)

[mksh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got "keys: ['0', '1', '2']\nvals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']
stderr:
ksh8 Evaluation order (1)

[ksh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got "keys: ['0', '1', '2']\nvals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']
stderr:
toysh8 Evaluation order (1)

[toysh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [100+i++]=$((i++))
brush8 Evaluation order (1)

[brush stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got "keys: ['0']\nvals: ['3']\n"

stdout:
keys: ['0']
vals: ['3']
stderr:
dash9 Evaluation order (2)

[dash stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash9 Evaluation order (2)

[ash stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh9 Evaluation order (2)

[zsh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [0]=1+2+3
mksh9 Evaluation order (2)

[mksh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0', '1', '2']\nvals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']
stderr:
ksh9 Evaluation order (2)

[ksh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0', '1', '2']\nvals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']
stderr:
toysh9 Evaluation order (2)

[toysh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: [0]=1+2+3
sush9 Evaluation order (2)

[sush stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0']\nvals: ['hello']\n"

stdout:
keys: ['0']
vals: ['hello']
stderr:
brush9 Evaluation order (2)

[brush stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0', '1', '2']\nvals: ['1+2+3', '[a[0]]=10', '[a[6]]=hello']\n"

stdout:
keys: ['0', '1', '2']
vals: ['1+2+3', '[a[0]]=10', '[a[6]]=hello']
stderr:
dash10 Evaluation order (3)

[dash stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash10 Evaluation order (3)

[ash stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh10 Evaluation order (3)

[zsh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got 'keys: '
[zsh status] Expected 0 Got 1

stdout:
keys: 
stderr:
zsh: bad substitution
mksh10 Evaluation order (3)

[mksh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']\nvals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']
vals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']
stderr:
ksh10 Evaluation order (3)

[ksh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']\nvals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']
vals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']
stderr:
toysh10 Evaluation order (3)

[toysh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: old1
sush10 Evaluation order (3)

[sush stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '101']\nvals: ['old2', 'new2', 'new3', 'old3', 'old1']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '5', '101']
vals: ['old2', 'new2', 'new3', 'old3', 'old1']
stderr:
brush10 Evaluation order (3)

[brush stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '6', '7']\nvals: ['new1', 'new2', 'new3', 'old3', '[a[0]]=old1', '[a[1]]=old2']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '5', '6', '7']
vals: ['new1', 'new2', 'new3', 'old3', '[a[0]]=old1', '[a[1]]=old2']
stderr:
dash11 [k1]=v1 (BashArray)

[dash stdout] Expected 'v2\nv2\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash11 [k1]=v1 (BashArray)

[ash stdout] Expected 'v2\nv2\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh11 [k1]=v1 (BashArray)

[zsh stdout] Expected 'v2\nv2\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [k1]=v1
mksh11 [k1]=v1 (BashArray)

[mksh stdout] Expected 'v2\nv2\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[2]: "k1": unexpected '"'
ksh11 [k1]=v1 (BashArray)

[ksh stdout] Expected 'v2\nv2\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
W: ksh: <stdin>[2]: "k1": unexpected '"'
toysh11 [k1]=v1 (BashArray)

[toysh stdout] Expected 'v2\nv2\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: [k1]=v1
dash12 [k1]=v1 (BashAssoc)

[dash stdout] Expected 'v1\nv2\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: declare: not found
dash: 2: Syntax error: "(" unexpected
ash12 [k1]=v1 (BashAssoc)

[ash stdout] Expected 'v1\nv2\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh12 [k1]=v1 (BashAssoc)

[zsh stdout] Expected 'v1\nv2\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [k1]=v1
mksh12 [k1]=v1 (BashAssoc)

[mksh stdout] Expected 'v1\nv2\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: declare: not found
mksh: <stdin>[3]: "k1": unexpected '"'
ksh12 [k1]=v1 (BashAssoc)

[ksh stdout] Expected 'v1\nv2\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: declare: inaccessible or not found
W: ksh: <stdin>[3]: "k1": unexpected '"'
toysh12 [k1]=v1 (BashAssoc)

[toysh stdout] Expected 'v1\nv2\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [k1]=v1
dash13 [k1]=v1 looking like brace expansions (BashAssoc)

[dash stdout] Expected '-{a,b}-\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: declare: not found
dash: 2: Syntax error: "(" unexpected
ash13 [k1]=v1 looking like brace expansions (BashAssoc)

[ash stdout] Expected '-{a,b}-\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh13 [k1]=v1 looking like brace expansions (BashAssoc)

[zsh stdout] Expected '-{a,b}-\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [k2]=-a-
mksh13 [k1]=v1 looking like brace expansions (BashAssoc)

[mksh stdout] Expected '-{a,b}-\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: declare: not found
mksh: <stdin>[3]: "k2": unexpected '"'
ksh13 [k1]=v1 looking like brace expansions (BashAssoc)

[ksh stdout] Expected '-{a,b}-\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: declare: inaccessible or not found
W: ksh: <stdin>[3]: "k2": unexpected '"'
toysh13 [k1]=v1 looking like brace expansions (BashAssoc)

[toysh stdout] Expected '-{a,b}-\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 2: sh: syntax error: [k2]=-{a,b}-
brush13 [k1]=v1 looking like brace expansions (BashAssoc)

[brush stdout] Expected '-{a,b}-\n' Got '-a- -b-\n'

stdout:
-a- -b-
stderr:
bash14 [k1]=v1 looking like brace expansions (BashArray)

stdout:
[k2]=-a-
stderr:
dash14 [k1]=v1 looking like brace expansions (BashArray)

[dash stdout] Expected '-{a,b}-\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash14 [k1]=v1 looking like brace expansions (BashArray)

[ash stdout] Expected '-{a,b}-\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh14 [k1]=v1 looking like brace expansions (BashArray)

[zsh stdout] Expected '-{a,b}-\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: no matches found: [k2]=-a-
mksh14 [k1]=v1 looking like brace expansions (BashArray)

[mksh stdout] Expected '-{a,b}-\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[2]: "k2": unexpected '"'
ksh14 [k1]=v1 looking like brace expansions (BashArray)

[ksh stdout] Expected '-{a,b}-\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
W: ksh: <stdin>[2]: "k2": unexpected '"'
toysh14 [k1]=v1 looking like brace expansions (BashArray)

[toysh stdout] Expected '-{a,b}-\n' Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: [k2]=-{a,b}-
sush14 [k1]=v1 looking like brace expansions (BashArray)

[sush stdout] Expected '-{a,b}-\n' Got '-b-\n'

stdout:
-b-
stderr:
brush14 [k1]=v1 looking like brace expansions (BashArray)

[brush stdout] Expected '-{a,b}-\n' Got '-a- -b-\n'

stdout:
-a- -b-
stderr:
dash15 BashArray cannot be changed to BashAssoc and vice versa

[dash stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash15 BashArray cannot be changed to BashAssoc and vice versa

[ash stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh15 BashArray cannot be changed to BashAssoc and vice versa

[zsh 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=0\n['1', '2', '3', '4']\n"

stdout:
status=1
['1', '2', '3', '4']
status=0
['1', '2', '3', '4']
stderr:
zsh: no matches found: [a]=x
zsh: no matches found: [a]=x
mksh15 BashArray cannot be changed to BashAssoc and vice versa

[mksh stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh15 BashArray cannot be changed to BashAssoc and vice versa

[ksh stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh15 BashArray cannot be changed to BashAssoc and vice versa

[toysh stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got ''
[toysh status] Expected 0 Got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush15 BashArray cannot be changed to BashAssoc and vice versa

[sush stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got "status=0\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n"

stdout:
status=0
['1', '2', '3', '4']
status=1
['x', 'y', 'z']
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: declare: TODO
bash16 (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:
dash16 (strict_array) s+=()

[dash stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 1: eval: Syntax error: "(" unexpected
ash16 (strict_array) s+=()

[ash stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: shopt: not found
ash: eval: line 6: syntax error: unexpected "("
zsh16 (strict_array) s+=()

[zsh stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got 'status=0\ntypeset -a s1\ns1=( 1 2 3 4 )\nstatus=0\ntypeset -a s2\ns2=( world 1 2 3 4 )\n'

stdout:
status=0
typeset -a s1
s1=( 1 2 3 4 )
status=0
typeset -a s2
s2=( world 1 2 3 4 )
stderr:
zsh: command not found: shopt
mksh16 (strict_array) s+=()

[mksh stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got 'status=0\nstatus=0\n'
[mksh status] Expected 0 Got 127

stdout:
status=0
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[8]: declare: not found
mksh: <stdin>[11]: declare: not found
ksh16 (strict_array) s+=()

[ksh stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got 'status=0\nstatus=0\n'
[ksh status] Expected 0 Got 127

stdout:
status=0
status=0
stderr:
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[8]: declare: inaccessible or not found
E: ksh: <stdin>[11]: declare: inaccessible or not found
toysh16 (strict_array) s+=()

[toysh stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got ''
[toysh status] Expected 0 Got -6

stdout:
stderr: 
sh: shopt: No such file or directory
munmap_chunk(): invalid pointer
sush16 (strict_array) s+=()

[sush stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got 'status=1\ndeclare -a s1=([0]="1" [1]="2" [2]="3" [3]="4")\nstatus=0\ndeclare -a s2=([0]="world" [5]="1" [6]="2" [7]="3" [8]="4")\n'

stdout:
status=1
declare -a s1=([0]="1" [1]="2" [2]="3" [3]="4")
status=0
declare -a s2=([0]="world" [5]="1" [6]="2" [7]="3" [8]="4")
stderr:
sush: shopt: --set: invalid shell option name
shopt: usage: shopt [-su] [optname ...]
brush16 (strict_array) s+=()

[brush stdout] Expected 'status=0\ndeclare -a s1=(1 2 3 4)\nstatus=1\ndeclare -- s2=world\n' Got 'status=0\ndeclare -a s1=([0]="1" [1]="2" [2]="3" [3]="4")\nstatus=0\ndeclare -a s2=([0]="world" [1]="1" [2]="2" [3]="3" [4]="4")\n'

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:
error: unexpected argument '--set' found

  tip: to pass '--set' as a value, use '-- --set'

Usage: shopt [OPTIONS] [OPTIONS]...

For more information, try '--help'.

bash17 (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:
dash17 (strict_array) declare -A s+=()

[dash stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 1: eval: Syntax error: "(" unexpected
ash17 (strict_array) declare -A s+=()

[ash stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: shopt: not found
ash: eval: line 6: syntax error: unexpected "("
zsh17 (strict_array) declare -A s+=()

[zsh stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got 'status=1\ntypeset s1=hello\nstatus=1\ntypeset s2=world\n'

stdout:
status=1
typeset s1=hello
status=1
typeset s2=world
stderr:
zsh: command not found: shopt
zsh: no matches found: [a]=x
zsh: no matches found: [a]=x
mksh17 (strict_array) declare -A s+=()

[mksh stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: syntax error: '(' unexpected
ksh17 (strict_array) declare -A s+=()

[ksh stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: syntax error: unexpected '('
toysh17 (strict_array) declare -A s+=()

[toysh stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got ''
[toysh status] Expected 0 Got -6

stdout:
stderr: 
sh: shopt: No such file or directory
munmap_chunk(): invalid pointer
sush17 (strict_array) declare -A s+=()

[sush stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got 'status=0\ndeclare -- s1="hello"\nstatus=0\ndeclare -- s2="world"\n'

stdout:
status=0
declare -- s1="hello"
status=0
declare -- s2="world"
stderr:
sush: shopt: --set: invalid shell option name
shopt: usage: shopt [-su] [optname ...]
brush17 (strict_array) declare -A s+=()

[brush stdout] Expected "status=0\ndeclare -A s1=(['a']=x ['b']=y)\nstatus=1\ndeclare -- s2=world\n" Got 'status=0\ndeclare -A s1=([a]="x" [b]="y" )\nstatus=0\ndeclare -A s2=([a]="x" [b]="y" )\n'

stdout:
status=0
declare -A s1=([a]="x" [b]="y" )
status=0
declare -A s2=([a]="x" [b]="y" )
stderr:
error: unexpected argument '--set' found

  tip: to pass '--set' as a value, use '-- --set'

Usage: shopt [OPTIONS] [OPTIONS]...

For more information, try '--help'.

bash18 (strict_array) assoc=(key value ...) is not allowed

stdout:
declare -A a=([3]="4" [1]="2" )
stderr:
dash18 (strict_array) assoc=(key value ...) is not allowed

[dash stdout] Expected 'declare -A a=()\n' Got ''
[dash status] Expected 0 Got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash18 (strict_array) assoc=(key value ...) is not allowed

[ash stdout] Expected 'declare -A a=()\n' Got ''
[ash status] Expected 0 Got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh18 (strict_array) assoc=(key value ...) is not allowed

[zsh stdout] Expected 'declare -A a=()\n' Got 'typeset -a a\na=( 1 2 3 4 )\n'

stdout:
typeset -a a
a=( 1 2 3 4 )
stderr:
zsh: command not found: shopt
zsh: no matches found: [a]=b
mksh18 (strict_array) assoc=(key value ...) is not allowed

[mksh stdout] Expected 'declare -A a=()\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[3]: syntax error: '(' unexpected
ksh18 (strict_array) assoc=(key value ...) is not allowed

[ksh stdout] Expected 'declare -A a=()\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[3]: syntax error: unexpected '('
toysh18 (strict_array) assoc=(key value ...) is not allowed

[toysh stdout] Expected 'declare -A a=()\n' Got ''
[toysh status] Expected 0 Got -6

stdout:
stderr: 
sh: shopt: No such file or directory
munmap_chunk(): invalid pointer
sush18 (strict_array) assoc=(key value ...) is not allowed

[sush stdout] Expected 'declare -A a=()\n' Got 'declare -A a=([1]="2" [3]="4" )\n'

stdout:
declare -A a=([1]="2" [3]="4" )
stderr:
sush: shopt: --set: invalid shell option name
shopt: usage: shopt [-su] [optname ...]
brush18 (strict_array) assoc=(key value ...) is not allowed

[brush stdout] Expected 'declare -A a=()\n' Got 'declare -A a=([1]="2" [3]="4" )\n'

stdout:
declare -A a=([1]="2" [3]="4" )
stderr:
error: unexpected argument '--set' found

  tip: to pass '--set' as a value, use '-- --set'

Usage: shopt [OPTIONS] [OPTIONS]...

For more information, try '--help'.