91 passed, 6 OK, 13 not implemented, 6 BUG, 84 failed, 0 timeouts, 0 cases skipped
dash | 0 Append string to string [dash stdout] Expected 'abcd\n', got 'abc\n' stdout: abcstderr: dash: 2: s+=d: not found |
ash | 0 Append string to string [ash stdout] Expected 'abcd\n', got 'abc\n' stdout: abcstderr: ash: s+=d: not found |
dash | 1 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 |
ash | 1 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 "(" |
toysh | 1 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 |
dash | 2 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 |
ash | 2 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 |
dash | 3 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 ")") |
ash | 3 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 ")") |
toysh | 3 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 |
dash | 4 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 ")") |
ash | 4 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 ")") |
toysh | 4 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 |
sush | 4 error: s+=(my array) [sush stdout] Expected "['abc', 'd', 'e', 'f']\n", got "['d', 'e', 'f']\n" stdout: ['d', 'e', 'f']stderr: |
bash | 5 error: myarray+=s stdout: ['xz', 'y']stderr: |
dash | 5 error: myarray+=s [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 5 error: myarray+=s [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 5 error: myarray+=s stdout: ['x', 'y', 'z']stderr: |
mksh | 5 error: myarray+=s stdout: ['xz', 'y']stderr: |
ksh | 5 error: myarray+=s [ksh stdout] Expected u'', got "['xz', 'y']\n" [ksh status] Expected 1, got 0 stdout: ['xz', 'y']stderr: |
toysh | 5 error: myarray+=s [toysh status] Expected 1, got 2 stdout: stderr: main: line 1: sh: syntax error: x |
sush | 5 error: myarray+=s [sush stdout] Expected u'', got "['xz', 'y']\n" [sush status] Expected 1, got 0 stdout: ['xz', 'y']stderr: |
brush | 5 error: myarray+=s [brush stdout] Expected u'', got "['xz', 'y']\n" [brush status] Expected 1, got 0 stdout: ['xz', 'y']stderr: |
dash | 6 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 |
ash | 6 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 "(" |
zsh | 6 typeset s+=(my array) stdout: abcstderr: typeset: not valid in this context: s+ |
mksh | 6 typeset s+=(my array) stdout: abcstderr: mksh: <stdin>[4]: syntax error: '(' unexpected |
ksh | 6 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: abcstderr: E: ksh: <stdin>[4]: syntax error: unexpected '(' |
toysh | 6 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: ) |
sush | 6 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: |
brush | 6 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: |
bash | 7 error: typeset myarray+=s stdout: ['x', 'y'] ['xs', 'y']stderr: |
dash | 7 error: typeset myarray+=s [dash stdout] Expected "['x', 'y']\n", got '' [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 7 error: typeset myarray+=s [ash stdout] Expected "['x', 'y']\n", got '' [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
mksh | 7 error: typeset myarray+=s stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 7 error: typeset myarray+=s [ksh stdout] Expected "['x', 'y']\n", got '' stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 7 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: ) |
sush | 7 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: |
brush | 7 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: |
bash | 8 error: append used like env prefix stdout: aastderr: |
dash | 8 error: append used like env prefix [dash status] Expected 2, got 127 stdout: stderr: dash: 2: A+=a: not found |
ash | 8 error: append used like env prefix [ash status] Expected 2, got 127 stdout: stderr: ash: A+=a: not found |
zsh | 8 error: append used like env prefix stdout: aastderr: |
mksh | 8 error: append used like env prefix stdout: astderr: |
ksh | 8 error: append used like env prefix [ksh status] Expected 2, got 0 stdout: astderr: |
toysh | 8 error: append used like env prefix [toysh status] Expected 2, got 0 stdout: aastderr: |
sush | 8 error: append used like env prefix [sush status] Expected 2, got 0 stdout: astderr: |
brush | 8 error: append used like env prefix [brush status] Expected 2, got 0 stdout: astderr: |
dash | 9 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 |
ash | 9 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 "(" |
zsh | 9 myarray[1]+=s - Append to element stdout: ['xz', 'y']stderr: |
toysh | 9 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 |
sush | 9 myarray[1]+=s - Append to element [sush stdout] Expected "['x', 'yz']\n", got "['x', 'z']\n" stdout: ['x', 'z']stderr: |
dash | 10 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 |
ash | 10 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 "(" |
mksh | 10 myarray[-1]+=s - Append to last element stdout: ['1', '2 3', ' 4']stderr: |
ksh | 10 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: |
toysh | 10 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 |
sush | 10 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: |
brush | 10 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: |
bash | 11 Try to append list to element stdout: ['1', '2 3']stderr: bash: line 2: a[-1]: cannot assign list to array member |
zsh | 11 Try to append list to element stdout: ['1', '2 3', '4', '5']stderr: |
mksh | 11 Try to append list to element stdout: stderr: mksh: <stdin>[2]: set: a[-1]+: is not an identifier |
ksh | 11 Try to append list to element [ksh status] Expected 2, got 1 stdout: stderr: E: ksh: <stdin>[2]: set: a[-1]+: not an identifier |
sush | 11 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 |
brush | 11 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: [31mERROR[0m error: not yet implemented: replacing an array item with an array |
dash | 12 Strings have value semantics, not reference semantics [dash stdout] Expected 'abcd abc\n', got 'abc abc\n' stdout: abc abcstderr: dash: 3: s1+=d: not found |
ash | 12 Strings have value semantics, not reference semantics [ash stdout] Expected 'abcd abc\n', got 'abc abc\n' stdout: abc abcstderr: ash: s1+=d: not found |
dash | 13 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 |
ash | 13 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 |
zsh | 13 typeset s+= stdout: stderr: typeset: not valid in this context: s+ |
toysh | 13 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 |
brush | 13 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=foostderr: |
dash | 14 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 |
ash | 14 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 |
zsh | 14 typeset s${dyn}+= stdout: stderr: typeset: not valid in this context: sx+ |
toysh | 14 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 |
sush | 14 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 |
brush | 14 typeset s${dyn}+= [brush stdout] Expected 'sx=foo\ntx=foo\ntx=foofoo\n', got 'sx=\ntx=\ntx=\n' stdout: sx= tx= tx=stderr: |
dash | 15 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 |
ash | 15 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 |
zsh | 15 export readonly += stdout: stderr: export: not valid in this context: e+ |
toysh | 15 export readonly += [toysh stdout] Expected 'e=foo\nr=bar\ne=foofoo\n', got 'e=foo\nr=\ne=foofoo\n' stdout: e=foo r= e=foofoostderr: sh: readonly: No such file or directory |
brush | 15 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=foostderr: |
dash | 16 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 |
ash | 16 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 |
zsh | 16 local += stdout: stderr: f:local:1: not valid in this context: s+ |
toysh | 16 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 |
brush | 16 local += [brush stdout] Expected 's=foo\ns=foofoo\n', got 's=foo\ns=foo\n' stdout: s=foo s=foostderr: |
dash | 17 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 |
ash | 17 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 "(" |
zsh | 17 assign builtin appending array: declare d+=(d e) stdout: stderr: declare: not valid in this context: d+ |
mksh | 17 assign builtin appending array: declare d+=(d e) stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 17 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 '(' |
toysh | 17 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: ) |
brush | 17 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 astderr: |
bash | 18 export+=array disallowed (strict_array) stdout: e xstderr: bash: line 1: shopt: strict_array: invalid shell option name |
dash | 18 export+=array disallowed (strict_array) [dash status] Expected 1, got 2 stdout: stderr: dash: 1: shopt: not found dash: 3: Syntax error: "(" unexpected |
ash | 18 export+=array disallowed (strict_array) [ash status] Expected 1, got 2 stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
toysh | 18 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: ) |
sush | 18 export+=array disallowed (strict_array) [sush stdout] Expected '', got 'e x\n' [sush status] Expected 1, got 0 stdout: e xstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: strict_array: not supported yet |
brush | 18 export+=array disallowed (strict_array) [brush stdout] Expected '', got 'e x\n' [brush status] Expected 1, got 0 stdout: e xstderr: shopt: strict_array: invalid shell option name |
dash | 19 Type mismatching of lhs+=rhs should not cause a crash [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: "(" unexpected |
ash | 19 Type mismatching of lhs+=rhs should not cause a crash [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 19 Type mismatching of lhs+=rhs should not cause a crash stdout: stderr: |
mksh | 19 Type mismatching of lhs+=rhs should not cause a crash stdout: stderr: |
ksh | 19 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 '(' |
toysh | 19 Type mismatching of lhs+=rhs should not cause a crash [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
osh | 19 Type mismatching of lhs+=rhs should not cause a crash stdout: stderr: a+=lime ^~~ [ stdin ]:9: fatal: Can't append string to array |