Results for append.test.sh

casebashmkshoshosh_ALTosh-byterundescription
0pass pass pass pass pass Append string to string
1pass pass pass pass pass Append array to array
2BUG BUG pass pass pass Append array to string should be an error
detailsdetails
3ok ok pass pass pass Append string to array should be disallowed
detailsdetails
4pass pass FAIL FAIL FAIL Append string to array element
detailsdetailsdetails
5pass BUG FAIL FAIL FAIL Append to last element
detailsdetailsdetailsdetails
6pass pass FAIL FAIL FAIL Try to append list to element
detailsdetailsdetails
7pass pass pass pass pass Strings have value semantics, not reference semantics
8pass pass FAIL FAIL FAIL Append to nonexistent string
detailsdetailsdetails
9pass N-I pass pass pass Append to nonexistent array
details
10BUG BUG pass pass pass Append used like env prefix is a parse error
detailsdetails

35 passed, 2 ok, 1 known unimplemented, 5 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

bash2 Append array to string should be an error

stdout:
abc
stderr:
mksh2 Append array to string should be an error

stdout:
abc
stderr:
bash3 Append string to array should be disallowed

stdout:
['xz', 'y']
stderr:
mksh3 Append string to array should be disallowed

stdout:
['xz', 'y']
stderr:
osh4 Append string to array element

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

stdout:
['x', 'y']
stderr:
Unexpected error in execvpe('a[1]+=z', ['a[1]+=z'], ...): [Errno 2] No such file or directory
osh_ALT4 Append string to array element

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

stdout:
['x', 'y']
stderr:
Unexpected error in execvpe('a[1]+=z', ['a[1]+=z'], ...): [Errno 2] No such file or directory
osh-byterun4 Append string to array element

[osh-byterun stdout] Expected "['x', 'yz']\n", got "['x', 'y']\n"

stdout:
['x', 'y']
stderr:
Unexpected error in execvpe('a[1]+=z', ['a[1]+=z'], ...): [Errno 2] No such file or directory
mksh5 Append to last element

stdout:
['1', '2 3', ' 4']
stderr:
osh5 Append to last element

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

stdout:
['1', '2 3']
stderr:
Unexpected error in execvpe('a[-1]+= 4', ['a[-1]+= 4'], ...): [Errno 2] No such file or directory
osh_ALT5 Append to last element

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

stdout:
['1', '2 3']
stderr:
Unexpected error in execvpe('a[-1]+= 4', ['a[-1]+= 4'], ...): [Errno 2] No such file or directory
osh-byterun5 Append to last element

[osh-byterun stdout] Expected "['1', '2 3 4']\n", got "['1', '2 3']\n"

stdout:
['1', '2 3']
stderr:
Unexpected error in execvpe('a[-1]+= 4', ['a[-1]+= 4'], ...): [Errno 2] No such file or directory
osh6 Try to append list to element

[osh status] Expected 1, got 2

stdout:
stderr: 
Line 3 of '<stdin>'
  a[-1]+=(4 5)
          ^
Expected word type Right_FuncDef, got (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:4 span_id:16))])
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
osh_ALT6 Try to append list to element

[osh_ALT status] Expected 1, got 2

stdout:
stderr: 
Line 3 of '<stdin>'
  a[-1]+=(4 5)
          ^
Expected word type Right_FuncDef, got (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:4 span_id:16))])
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
osh-byterun6 Try to append list to element

[osh-byterun status] Expected 1, got 2

stdout:
stderr: 
Line 3 of '<stdin>'
  a[-1]+=(4 5)
          ^
Expected word type Right_FuncDef, got (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:4 span_id:16))])
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
osh8 Append to nonexistent string

[osh stdout] Expected u'a\nb\nc\nd\ne\n', got 'a\nb\nc\n\n\n'

stdout:
a
b
c


stderr:
usage error: export: Invalid variable name 'd+'
Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
osh_ALT8 Append to nonexistent string

[osh_ALT stdout] Expected u'a\nb\nc\nd\ne\n', got 'a\nb\nc\n\n\n'

stdout:
a
b
c


stderr:
usage error: export: Invalid variable name 'd+'
Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
osh-byterun8 Append to nonexistent string

[osh-byterun stdout] Expected u'a\nb\nc\nd\ne\n', got 'a\nb\nc\n\n\n'

stdout:
a
b
c


stderr:
usage error: export: Invalid variable name 'd+'
Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
mksh9 Append to nonexistent array

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected
bash10 Append used like env prefix is a parse error

stdout:
aa
stderr:
mksh10 Append used like env prefix is a parse error

stdout:
a
stderr: