spec test index / oilshell.org
status | bash | mksh | osh | |
pass | 7 | 6 | 9 | |
ok | 2 | 1 | 2 | |
N-I | 0 | 1 | 0 | |
BUG | 2 | 3 | 0 | |
total | 11 | 11 | 11 | |
case | bash | mksh | osh | description |
0 | pass | pass | pass | Append string to string |
1 | pass | pass | pass | Append array to array |
2 | BUG | BUG | pass | Append array to string should be an error |
details | details | |||
3 | ok | ok | pass | Append string to array should be disallowed |
details | details | |||
4 | pass | pass | pass | Append string to array element |
5 | pass | BUG | pass | Append to last element |
details | ||||
6 | ok | N-I | ok | Try to append list to element |
details | details | details | ||
7 | pass | pass | pass | Strings have value semantics, not reference semantics |
8 | pass | pass | ok | Append to nonexistent string |
details | ||||
9 | pass | pass | pass | Append to nonexistent array is allowed |
10 | BUG | BUG | pass | Append used like env prefix is a parse error |
details | details |
22 passed, 5 OK, 1 not implemented, 5 BUG, 0 failed, 0 timeouts, 0 cases 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: |
mksh | 5 Append to last element stdout: ['1', '2 3', ' 4']stderr: |
bash | 6 Try to append list to element stdout: ['1', '2 3']stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: a[-1]: cannot assign list to array member |
mksh | 6 Try to append list to element stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: set: a[-1]+: is not an identifier |
osh | 6 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: Expected ) in function definition |
osh | 8 Append to nonexistent string stdout: stderr: local a+=a ^~~ [ stdin ]:2: fatal: += not allowed in assignment builtin |
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: |