Results for append.test.sh

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

28 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
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
osh6 Try to append list to element

[osh status] Expected 1, got 2

stdout:
stderr: 
Line 2 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))])
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT6 Try to append list to element

[osh_ALT status] Expected 1, got 2

stdout:
stderr: 
Line 2 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))])
---
Line 0 of '<unknown>'
  <no position info for token>
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:
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:
Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
mksh9 Append to nonexistent array

stdout:
stderr: 
/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: