| case | bash | mksh | osh | osh_ALT | description |
| 0 | pass | pass | pass | pass | Append string to string |
| 1 | pass | pass | pass | pass | Append array to array |
| 2 | BUG | BUG | pass | pass | Append array to string should be an error |
| details | details | ||||
| 3 | ok | ok | pass | pass | Append string to array should be disallowed |
| details | details | ||||
| 4 | pass | pass | FAIL | FAIL | Append string to array element |
| details | details | ||||
| 5 | pass | BUG | FAIL | FAIL | Append to last element |
| details | details | details | |||
| 6 | pass | pass | FAIL | FAIL | Try to append list to element |
| details | details | ||||
| 7 | pass | pass | pass | pass | Strings have value semantics, not reference semantics |
| 8 | pass | pass | FAIL | FAIL | Append to nonexistent string |
| details | details | ||||
| 9 | pass | N-I | pass | pass | Append to nonexistent array |
| details | |||||
| 10 | BUG | BUG | pass | pass | Append used like env prefix is a parse error |
| details | details |
28 passed, 2 ok, 1 known unimplemented, 5 known bugs, 4 failed, 0 skipped
| bash | 2 Append array to string should be an error stdout: abcstderr: |
| mksh | 2 Append array to string should be an error stdout: abcstderr: |
| bash | 3 Append string to array should be disallowed stdout: ['xz', 'y']stderr: |
| mksh | 3 Append string to array should be disallowed stdout: ['xz', 'y']stderr: |
| osh | 4 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_ALT | 4 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
|
| mksh | 5 Append to last element stdout: ['1', '2 3', ' 4']stderr: |
| osh | 5 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_ALT | 5 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 | 6 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_ALT | 6 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
---
|
| osh | 8 Append to nonexistent string [osh stdout] Expected u'a\nb\nc\nd\ne\n', got 'a\nb\nc\n\n\n' stdout: a b cstderr: Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
|
| osh_ALT | 8 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 cstderr: Unexpected error in execvpe('e[1]+=e', ['e[1]+=e'], ...): [Errno 2] No such file or directory
|
| mksh | 9 Append to nonexistent array stdout: stderr: /bin/mksh: <stdin>[2]: syntax error: '(' unexpected
|
| bash | 10 Append used like env prefix is a parse error stdout: aastderr: |
| mksh | 10 Append used like env prefix is a parse error stdout: astderr: |