Results for array-literal.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 4000000238
N-I 3000000000
BUG 1000000000
FAIL 0888888650
total8888888888
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass [k1]=v1 (BashArray)
detailsdetailsdetailsdetailsdetailsdetails
1pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass [k1]=v1 (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass [k1]=v1 looking like brace expansions (BashArray)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
3BUG FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass [k1]=v1 looking like brace expansions (BashAssoc)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
4pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass BashArray cannot be changed to BashAssoc and vice versa
detailsdetailsdetailsdetailsdetailsdetailsdetails
5N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass s+=() with strict_array
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
6N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass declare -A s+=() with strict_array
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
7N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass assoc=(key value ...) is not allowed in the strict_array mode
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
17 passed, 0 OK, 3 not implemented, 1 BUG, 59 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 [k1]=v1 (BashArray)

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

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

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

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

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

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

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

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

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

stdout:
stderr: 
W: ksh: <stdin>[2]: "k1": unexpected '"'
toysh0 [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
dash1 [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
ash1 [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 "("
zsh1 [k1]=v1 (BashAssoc)

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

stdout:
stderr: 
zsh: no matches found: [k1]=v1
mksh1 [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 '"'
ksh1 [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 '"'
toysh1 [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
dash2 [k1]=v1 looking like brace expansions (BashArray)

[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
ash2 [k1]=v1 looking like brace expansions (BashArray)

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

stdout:
stderr: 
ash: declare: not found
ash: syntax error: unexpected "("
zsh2 [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-
mksh2 [k1]=v1 looking like brace expansions (BashArray)

[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 '"'
ksh2 [k1]=v1 looking like brace expansions (BashArray)

[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 '"'
toysh2 [k1]=v1 looking like brace expansions (BashArray)

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

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

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

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

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

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

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

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

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

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

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh3 [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-
mksh3 [k1]=v1 looking like brace expansions (BashAssoc)

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

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

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

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

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

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

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

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

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

stdout:
-a- -b-
stderr:
dash4 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
ash4 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 "("
zsh4 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
mksh4 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
ksh4 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 '('
toysh4 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: )
sush4 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=0\n['x', 'z']\n"

stdout:
status=0
['1', '2', '3', '4']
status=0
['x', 'z']
stderr:
bash5 s+=() with strict_array

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:
dash5 s+=() with strict_array

[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
ash5 s+=() with strict_array

[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 "("
zsh5 s+=() with strict_array

[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
mksh5 s+=() with strict_array

[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
ksh5 s+=() with strict_array

[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
toysh5 s+=() with strict_array

[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
sush5 s+=() with strict_array

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

stdout:
status=1
declare -a s1=([0]="1" [1]="2" [2]="3" [3]="4")
status=0
declare -a s2=([0]="1" [1]="2" [2]="3" [3]="4")
stderr:
sush: shopt: --: invalid shell option name
shopt: usage: shopt [-su] [optname ...]
brush5 s+=() with strict_array

[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'.

bash6 declare -A s+=() with strict_array

stdout:
status=0
declare -A s1=([b]="y" [a]="x" )
status=0
declare -A s2=([0]="world" [b]="y" [a]="x" )
stderr:
dash6 declare -A s+=() with strict_array

[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
ash6 declare -A s+=() with strict_array

[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 "("
zsh6 declare -A s+=() with strict_array

[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
mksh6 declare -A s+=() with strict_array

[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
ksh6 declare -A s+=() with strict_array

[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 '('
toysh6 declare -A s+=() with strict_array

[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
sush6 declare -A s+=() with strict_array

[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: --: invalid shell option name
shopt: usage: shopt [-su] [optname ...]
brush6 declare -A s+=() with strict_array

[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'.

bash7 assoc=(key value ...) is not allowed in the strict_array mode

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

[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
ash7 assoc=(key value ...) is not allowed in the strict_array mode

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

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

[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
mksh7 assoc=(key value ...) is not allowed in the strict_array mode

[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
ksh7 assoc=(key value ...) is not allowed in the strict_array mode

[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 '('
toysh7 assoc=(key value ...) is not allowed in the strict_array mode

[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
sush7 assoc=(key value ...) is not allowed in the strict_array mode

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

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

[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'.