Results for append.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 151191212410819
ok 2002100001
N-I 1007500000
BUG 2002200000
FAIL 019190081610120
total20202020202020202020
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL pass pass pass pass pass pass pass Append string to string
detailsdetails
1pass FAIL FAIL pass pass pass FAIL pass pass pass Append array to array
detailsdetailsdetails
2pass FAIL FAIL pass pass pass pass pass pass pass Append string to undefined variable
detailsdetails
3pass FAIL FAIL pass pass pass FAIL pass pass pass Append to array to undefined variable
detailsdetailsdetails
4pass FAIL FAIL pass pass pass FAIL FAIL pass pass error: s+=(my array)
detailsdetailsdetailsdetails
5ok FAIL FAIL ok ok FAIL FAIL FAIL FAIL pass error: myarray+=s
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
6pass FAIL FAIL N-I N-I FAIL FAIL FAIL FAIL pass typeset s+=(my array)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
7BUG FAIL FAIL pass N-I FAIL FAIL FAIL FAIL pass error: typeset myarray+=s
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
8BUG FAIL FAIL BUG BUG FAIL FAIL FAIL FAIL pass error: append used like env prefix
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
9pass FAIL FAIL BUG pass pass FAIL FAIL pass pass myarray[1]+=s - Append to element
detailsdetailsdetailsdetailsdetails
10pass FAIL FAIL pass BUG FAIL FAIL FAIL FAIL pass myarray[-1]+=s - Append to last element
detailsdetailsdetailsdetailsdetailsdetailsdetails
11ok pass pass ok N-I FAIL pass FAIL FAIL pass Try to append list to element
detailsdetailsdetailsdetailsdetailsdetails
12pass FAIL FAIL pass pass pass pass pass pass pass Strings have value semantics, not reference semantics
detailsdetails
13pass FAIL FAIL N-I pass pass FAIL pass FAIL pass typeset s+=
detailsdetailsdetailsdetailsdetails
14pass FAIL FAIL N-I pass pass FAIL FAIL FAIL pass typeset s${dyn}+=
detailsdetailsdetailsdetailsdetailsdetails
15pass FAIL FAIL N-I pass pass FAIL pass FAIL pass export readonly +=
detailsdetailsdetailsdetailsdetails
16pass FAIL FAIL N-I pass pass FAIL pass FAIL pass local +=
detailsdetailsdetailsdetailsdetails
17pass FAIL FAIL N-I N-I FAIL FAIL pass FAIL pass assign builtin appending array: declare d+=(d e)
detailsdetailsdetailsdetailsdetailsdetailsdetails
18N-I FAIL FAIL pass pass pass FAIL FAIL FAIL pass export+=array disallowed (strict_array)
detailsdetailsdetailsdetailsdetailsdetails
19pass FAIL FAIL N-I N-I FAIL FAIL pass pass ok Type mismatching of lhs+=rhs should not cause a crash
detailsdetailsdetailsdetailsdetailsdetailsdetails
91 passed, 6 OK, 13 not implemented, 6 BUG, 84 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 Append string to string

[dash stdout] Expected 'abcd\n', got 'abc\n'

stdout:
abc
stderr:
dash: 2: s+=d: not found
ash0 Append string to string

[ash stdout] Expected 'abcd\n', got 'abc\n'

stdout:
abc
stderr:
ash: s+=d: not found
dash1 Append array to array

[dash stdout] Expected "['x', 'y', 't', 'u v']\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash1 Append array to array

[ash stdout] Expected "['x', 'y', 't', 'u v']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
toysh1 Append array to array

[toysh stdout] Expected "['x', 'y', 't', 'u v']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: x
dash2 Append string to undefined variable

[dash stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=\n'
[dash status] Expected 0, got 2

stdout:
s=
stderr:
dash: 1: s+=foo: not found
dash: 7: t+=foo: not found
dash: 8: t: parameter not set
ash2 Append string to undefined variable

[ash stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=\n'
[ash status] Expected 0, got 2

stdout:
s=
stderr:
ash: s+=foo: not found
ash: t+=foo: not found
ash: t: parameter not set
dash3 Append to array to undefined variable

[dash stdout] Expected "['c', 'd']\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: word unexpected (expecting ")")
ash3 Append to array to undefined variable

[ash stdout] Expected "['c', 'd']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected word (expecting ")")
toysh3 Append to array to undefined variable

[toysh stdout] Expected "['c', 'd']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: c
dash4 error: s+=(my array)

[dash stdout] Expected "['abc', 'd', 'e', 'f']\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Syntax error: word unexpected (expecting ")")
ash4 error: s+=(my array)

[ash stdout] Expected "['abc', 'd', 'e', 'f']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected word (expecting ")")
toysh4 error: s+=(my array)

[toysh stdout] Expected "['abc', 'd', 'e', 'f']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: d
sush4 error: s+=(my array)

[sush stdout] Expected "['abc', 'd', 'e', 'f']\n", got "['d', 'e', 'f']\n"

stdout:
['d', 'e', 'f']
stderr:
bash5 error: myarray+=s

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

[dash status] Expected 1, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash5 error: myarray+=s

[ash status] Expected 1, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh5 error: myarray+=s

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

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

[ksh stdout] Expected u'', got "['xz', 'y']\n"
[ksh status] Expected 1, got 0

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

[toysh status] Expected 1, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: x
sush5 error: myarray+=s

[sush stdout] Expected u'', got "['xz', 'y']\n"
[sush status] Expected 1, got 0

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

[brush stdout] Expected u'', got "['xz', 'y']\n"
[brush status] Expected 1, got 0

stdout:
['xz', 'y']
stderr:
dash6 typeset s+=(my array)

[dash stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got '\n'
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: typeset: not found
dash: 4: Syntax error: "(" unexpected
ash6 typeset s+=(my array)

[ash stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got '\n'
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: typeset: not found
ash: syntax error: unexpected "("
zsh6 typeset s+=(my array)

stdout:
abc
stderr:
typeset: not valid in this context: s+
mksh6 typeset s+=(my array)

stdout:
abc
stderr:
mksh: <stdin>[4]: syntax error: '(' unexpected
ksh6 typeset s+=(my array)

[ksh stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got 'abc\n'
[ksh status] Expected 0, got 1

stdout:
abc
stderr:
E: ksh: <stdin>[4]: syntax error: unexpected '('
toysh6 typeset s+=(my array)

[toysh stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got '\n'
[toysh status] Expected 0, got 2

stdout:
stderr: 
sh: typeset: No such file or directory
main: line 4: sh: syntax error: )
sush6 typeset s+=(my array)

[sush stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got "abc\nstatus=0\n['d', 'e', 'f']\n"

stdout:
abc
status=0
['d', 'e', 'f']
stderr:
brush6 typeset s+=(my array)

[brush stdout] Expected "abc\nstatus=0\n['abc', 'd', 'e', 'f']\n", got "abc\nstatus=0\n['d', 'e', 'f']\n"

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

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

[dash stdout] Expected "['x', 'y']\n", got ''
[dash status] Expected 1, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash7 error: typeset myarray+=s

[ash stdout] Expected "['x', 'y']\n", got ''
[ash status] Expected 1, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
mksh7 error: typeset myarray+=s

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh7 error: typeset myarray+=s

[ksh stdout] Expected "['x', 'y']\n", got ''

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh7 error: typeset myarray+=s

[toysh stdout] Expected "['x', 'y']\n", got ''
[toysh status] Expected 1, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush7 error: typeset myarray+=s

[sush stdout] Expected "['x', 'y']\n", got "['x', 'y']\n['xs', 'y']\n"
[sush status] Expected 1, got 0

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

[brush stdout] Expected "['x', 'y']\n", got "['x', 'y']\n['s', 'y']\n"
[brush status] Expected 1, got 0

stdout:
['x', 'y']
['s', 'y']
stderr:
bash8 error: append used like env prefix

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

[dash status] Expected 2, got 127

stdout:
stderr: 
dash: 2: A+=a: not found
ash8 error: append used like env prefix

[ash status] Expected 2, got 127

stdout:
stderr: 
ash: A+=a: not found
zsh8 error: append used like env prefix

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

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

[ksh status] Expected 2, got 0

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

[toysh status] Expected 2, got 0

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

[sush status] Expected 2, got 0

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

[brush status] Expected 2, got 0

stdout:
a
stderr:
dash9 myarray[1]+=s - Append to element

[dash stdout] Expected "['x', 'yz']\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash9 myarray[1]+=s - Append to element

[ash stdout] Expected "['x', 'yz']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh9 myarray[1]+=s - Append to element

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

[toysh stdout] Expected "['x', 'yz']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: x
sush9 myarray[1]+=s - Append to element

[sush stdout] Expected "['x', 'yz']\n", got "['x', 'z']\n"

stdout:
['x', 'z']
stderr:
dash10 myarray[-1]+=s - Append to last element

[dash stdout] Expected "['1', '2 3 4']\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash10 myarray[-1]+=s - Append to last element

[ash stdout] Expected "['1', '2 3 4']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
mksh10 myarray[-1]+=s - Append to last element

stdout:
['1', '2 3', ' 4']
stderr:
ksh10 myarray[-1]+=s - Append to last element

[ksh stdout] Expected "['1', '2 3 4']\n", got "['1', '2 3', ' 4']\n"

stdout:
['1', '2 3', ' 4']
stderr:
toysh10 myarray[-1]+=s - Append to last element

[toysh stdout] Expected "['1', '2 3 4']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 1
sush10 myarray[-1]+=s - Append to last element

[sush stdout] Expected "['1', '2 3 4']\n", got "['1', '2 3']\n"

stdout:
['1', '2 3']
stderr:
brush10 myarray[-1]+=s - Append to last element

[brush stdout] Expected "['1', '2 3 4']\n", got "['1 4', '2 3']\n"

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

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

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

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

[ksh status] Expected 2, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: set: a[-1]+: not an identifier
sush11 Try to append list to element

[sush stdout] Expected u'', got "['1', '2 3']\n"
[sush status] Expected 2, got 0

stdout:
['1', '2 3']
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: a[-1]: cannot assign list to array member
brush11 Try to append list to element

[brush stdout] Expected u'', got "['1', '2 3']\n"
[brush status] Expected 2, got 0

stdout:
['1', '2 3']
stderr:
ERROR error: not yet implemented: replacing an array item with an array
dash12 Strings have value semantics, not reference semantics

[dash stdout] Expected 'abcd abc\n', got 'abc abc\n'

stdout:
abc abc
stderr:
dash: 3: s1+=d: not found
ash12 Strings have value semantics, not reference semantics

[ash stdout] Expected 'abcd abc\n', got 'abc abc\n'

stdout:
abc abc
stderr:
ash: s1+=d: not found
dash13 typeset s+=

[dash stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=\n'
[dash status] Expected 0, got 2

stdout:
s=
stderr:
dash: 1: typeset: not found
dash: 7: typeset: not found
dash: 8: t: parameter not set
ash13 typeset s+=

[ash stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=\n'
[ash status] Expected 0, got 2

stdout:
s=
stderr:
ash: typeset: not found
ash: typeset: not found
ash: t: parameter not set
zsh13 typeset s+=

stdout:
stderr: 
typeset: not valid in this context: s+
toysh13 typeset s+=

[toysh stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=\n'
[toysh status] Expected 0, got 1

stdout:
s=
stderr:
sh: typeset: No such file or directory
sh: typeset: No such file or directory
main: line 8: sh: t: bad substitution
sh: typeset: No such file or directory
main: line 10: sh: t: bad substitution
brush13 typeset s+=

[brush stdout] Expected 's=foo\nt=foo\nt=foofoo\n', got 's=foo\nt=foo\nt=foo\n'

stdout:
s=foo
t=foo
t=foo
stderr:
dash14 typeset s${dyn}+=

[dash stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\n'
[dash status] Expected 0, got 2

stdout:
sx=
stderr:
dash: 3: typeset: not found
dash: 9: typeset: not found
dash: 10: tx: parameter not set
ash14 typeset s${dyn}+=

[ash stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\n'
[ash status] Expected 0, got 2

stdout:
sx=
stderr:
ash: typeset: not found
ash: typeset: not found
ash: tx: parameter not set
zsh14 typeset s${dyn}+=

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

[toysh stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\n'
[toysh status] Expected 0, got 1

stdout:
sx=
stderr:
sh: typeset: No such file or directory
sh: typeset: No such file or directory
main: line 10: sh: tx: bad substitution
sh: typeset: No such file or directory
main: line 12: sh: tx: bad substitution
sush14 typeset s${dyn}+=

[sush stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\n'
[sush status] Expected 0, got 1

stdout:
sx=
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: tx: unbound variable
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: tx: unbound variable
brush14 typeset s${dyn}+=

[brush stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\ntx=\ntx=\n'

stdout:
sx=
tx=
tx=
stderr:
dash15 export readonly +=

[dash stdout] Expected 'e=foo\nr=bar\ne=foofoo\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: export: e+: bad variable name
ash15 export readonly +=

[ash stdout] Expected 'e=foo\nr=bar\ne=foofoo\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: export: line 1: e+: bad variable name
zsh15 export readonly +=

stdout:
stderr: 
export: not valid in this context: e+
toysh15 export readonly +=

[toysh stdout] Expected 'e=foo\nr=bar\ne=foofoo\n', got 'e=foo\nr=\ne=foofoo\n'

stdout:
e=foo
r=
e=foofoo
stderr:
sh: readonly: No such file or directory
brush15 export readonly +=

[brush stdout] Expected 'e=foo\nr=bar\ne=foofoo\n', got 'e=foo\nr=bar\ne=foo\n'

stdout:
e=foo
r=bar
e=foo
stderr:
dash16 local +=

[dash stdout] Expected 's=foo\ns=foofoo\n', got 's=\n'
[dash status] Expected 0, got 2

stdout:
s=
stderr:
dash: 7: s: parameter not set
dash: 7: s+: bad variable name
ash16 local +=

[ash stdout] Expected 's=foo\ns=foofoo\n', got 's=\n'
[ash status] Expected 0, got 2

stdout:
s=
stderr:
ash: s: parameter not set
zsh16 local +=

stdout:
stderr: 
f:local:1: not valid in this context: s+
toysh16 local +=

[toysh stdout] Expected 's=foo\ns=foofoo\n', got 's=\n'
[toysh status] Expected 0, got 1

stdout:
s=
stderr:
local: bad s+=foo
local: bad s+=foo
main: line 10: sh: s: bad substitution
brush16 local +=

[brush stdout] Expected 's=foo\ns=foofoo\n', got 's=foo\ns=foo\n'

stdout:
s=foo
s=foo
stderr:
dash17 assign builtin appending array: declare d+=(d e)

[dash stdout] Expected 'd e\nd e c l\nr e\nl o\nl o c a\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash17 assign builtin appending array: declare d+=(d e)

[ash stdout] Expected 'd e\nd e c l\nr e\nl o\nl o c a\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh17 assign builtin appending array: declare d+=(d e)

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

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

[ksh stdout] Expected 'd e\nd e c l\nr e\nl o\nl o c a\n', got ''
[ksh status] Expected 0, got 1

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

[toysh stdout] Expected 'd e\nd e c l\nr e\nl o\nl o c a\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
brush17 assign builtin appending array: declare d+=(d e)

[brush stdout] Expected 'd e\nd e c l\nr e\nl o\nl o c a\n', got 'd e\nc l\nr e\nl o\nc a\n'

stdout:
d e
c l
r e
l o
c a
stderr:
bash18 export+=array disallowed (strict_array)

stdout:
e x
stderr:
bash: line 1: shopt: strict_array: invalid shell option name
dash18 export+=array disallowed (strict_array)

[dash status] Expected 1, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash18 export+=array disallowed (strict_array)

[ash status] Expected 1, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
toysh18 export+=array disallowed (strict_array)

[toysh status] Expected 1, got 2

stdout:
stderr: 
sh: shopt: No such file or directory
main: line 3: sh: syntax error: )
sush18 export+=array disallowed (strict_array)

[sush stdout] Expected '', got 'e x\n'
[sush status] Expected 1, got 0

stdout:
e x
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: strict_array: not supported yet
brush18 export+=array disallowed (strict_array)

[brush stdout] Expected '', got 'e x\n'
[brush status] Expected 1, got 0

stdout:
e x
stderr:
shopt: strict_array: invalid shell option name
dash19 Type mismatching of lhs+=rhs should not cause a crash

[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 3: Syntax error: "(" unexpected
ash19 Type mismatching of lhs+=rhs should not cause a crash

[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh19 Type mismatching of lhs+=rhs should not cause a crash

stdout:
stderr: 
mksh19 Type mismatching of lhs+=rhs should not cause a crash

stdout:
stderr: 
ksh19 Type mismatching of lhs+=rhs should not cause a crash

[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[4]: syntax error: unexpected '('
toysh19 Type mismatching of lhs+=rhs should not cause a crash

[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
osh19 Type mismatching of lhs+=rhs should not cause a crash

stdout:
stderr: 
  a+=lime
  ^~~
[ stdin ]:9: fatal: Can't append string to array