Results for append.test.sh

statusbashmkshzshoshosh_ALT
pass 1212101818
ok 31211
N-I 03500
BUG 43200
total1919191919
casebashmkshzshoshosh_ALTdescription
0pass pass pass pass pass Append string to string
1pass pass pass pass pass Append array to array
2pass pass pass pass pass Append string to undefined variable
3pass pass pass pass pass Append to array to undefined variable
4BUG BUG ok pass pass error: s+=(my array)
detailsdetailsdetails
5ok ok ok pass pass error: myarray+=s
detailsdetailsdetails
6ok pass pass pass pass typeset s+=(my array) -- compat_array
details
7BUG N-I pass pass pass error: typeset myarray+=s
detailsdetails
8BUG BUG BUG pass pass error: append used like env prefix
detailsdetailsdetails
9pass pass BUG pass pass myarray[1]+=s - Append to element
details
10pass BUG pass pass pass myarray[-1]+=s - Append to last element
details
11ok N-I pass ok ok Try to append list to element
detailsdetailsdetailsdetails
12pass pass pass pass pass Strings have value semantics, not reference semantics
13pass pass N-I pass pass typeset s+=
details
14pass pass N-I pass pass typeset s${dyn}+=
details
15pass pass N-I pass pass export readonly +=
details
16pass pass N-I pass pass local +=
details
17pass N-I N-I pass pass assign builtin appending array: declare d+=(d e)
detailsdetails
18BUG pass pass pass pass export+=array disallowed
details
70 passed, 8 OK, 8 not implemented, 9 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

bash4 error: s+=(my array)

stdout:
abc
stderr:
mksh4 error: s+=(my array)

stdout:
abc
stderr:
zsh4 error: s+=(my array)

stdout:
abc d e f
stderr:
bash5 error: myarray+=s

stdout:
['xz', 'y']
stderr:
mksh5 error: myarray+=s

stdout:
['xz', 'y']
stderr:
zsh5 error: myarray+=s

stdout:
['x', 'y', 'z']
stderr:
bash6 typeset s+=(my array) -- compat_array

stdout:
abc
status=0
['abc', 'd', 'e', 'f']
stderr:
bash7 error: typeset myarray+=s

stdout:
['x', 'y']
['xs', 'y']
stderr:
mksh7 error: typeset myarray+=s

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
bash8 error: append used like env prefix

stdout:
aa
stderr:
mksh8 error: append used like env prefix

stdout:
a
stderr:
zsh8 error: append used like env prefix

stdout:
aa
stderr:
zsh9 myarray[1]+=s - Append to element

stdout:
['xz', 'y']
stderr:
mksh10 myarray[-1]+=s - Append to last element

stdout:
['1', '2 3', ' 4']
stderr:
bash11 Try to append list to element

stdout:
['1', '2 3']
stderr:
bash: line 2: a[-1]: cannot assign list to array member
mksh11 Try to append list to element

stdout:
stderr: 
mksh: <stdin>[2]: set: a[-1]+: is not an identifier
osh11 Try to append list to element

stdout:
stderr: 
  a[-1]+=(4 5)
         ^
[ stdin ]:2: Unexpected left paren (might need a space before it)
osh_ALT11 Try to append list to element

stdout:
stderr: 
  a[-1]+=(4 5)
         ^
[ stdin ]:2: Unexpected left paren (might need a space before it)
zsh13 typeset s+=

stdout:
stderr: 
typeset: not valid in this context: s+
zsh14 typeset s${dyn}+=

stdout:
stderr: 
typeset: not valid in this context: sx+
zsh15 export readonly +=

stdout:
stderr: 
export: not valid in this context: e+
zsh16 local +=

stdout:
stderr: 
f:local:1: not valid in this context: s+
mksh17 assign builtin appending array: declare d+=(d e)

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
zsh17 assign builtin appending array: declare d+=(d e)

stdout:
stderr: 
declare: not valid in this context: d+
bash18 export+=array disallowed

stdout:
e x
stderr: