spec test index / oilshell.org
case | bash | mksh | osh | osh_ALT | osh-byterun | description |
0 | pass | pass | pass | pass | pass | Append string to string |
1 | pass | pass | pass | pass | pass | Append array to array |
2 | BUG | BUG | pass | pass | pass | Append array to string should be an error |
details | details | |||||
3 | ok | ok | pass | pass | pass | Append string to array should be disallowed |
details | details | |||||
4 | pass | pass | FAIL | FAIL | FAIL | Append string to array element |
details | details | details | ||||
5 | pass | BUG | FAIL | FAIL | FAIL | Append to last element |
details | details | details | details | |||
6 | pass | pass | FAIL | FAIL | FAIL | Try to append list to element |
details | details | details | ||||
7 | pass | pass | pass | pass | pass | Strings have value semantics, not reference semantics |
8 | pass | pass | FAIL | FAIL | FAIL | Append to nonexistent string |
details | details | details | ||||
9 | pass | N-I | pass | pass | pass | Append to nonexistent array |
details | ||||||
10 | BUG | BUG | pass | pass | pass | Append used like env prefix is a parse error |
details | details |
35 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: osh error: 'a[1]+=z': 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: osh error: 'a[1]+=z': No such file or directory |
osh-byterun | 4 Append string to array element [osh-byterun stdout] Expected "['x', 'yz']\n", got "['x', 'y']\n" stdout: ['x', 'y']stderr: osh error: 'a[1]+=z': 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: osh error: 'a[-1]+= 4': 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: osh error: 'a[-1]+= 4': No such file or directory |
osh-byterun | 5 Append to last element [osh-byterun stdout] Expected "['1', '2 3 4']\n", got "['1', '2 3']\n" stdout: ['1', '2 3']stderr: osh error: 'a[-1]+= 4': No such file or directory |
osh | 6 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 Word_Compound |
osh_ALT | 6 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 Word_Compound |
osh-byterun | 6 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 Word_Compound |
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: usage error: export: Invalid variable name 'd+' osh error: 'e[1]+=e': 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: usage error: export: Invalid variable name 'd+' osh error: 'e[1]+=e': No such file or directory |
osh-byterun | 8 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 cstderr: usage error: export: Invalid variable name 'd+' osh error: 'e[1]+=e': No such file or directory |
mksh | 9 Append to nonexistent array stdout: stderr: _tmp/spec-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: |