spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 18 | 18 | |
ok | 1 | 1 | |
total | 19 | 19 | |
case | osh | osh-cpp | description |
0 | pass | pass | Append string to string |
1 | pass | pass | Append array to array |
2 | pass | pass | Append string to undefined variable |
3 | pass | pass | Append to array to undefined variable |
4 | pass | pass | error: s+=(my array) |
5 | pass | pass | error: myarray+=s |
6 | pass | pass | typeset s+=(my array) |
7 | pass | pass | error: typeset myarray+=s |
8 | pass | pass | error: append used like env prefix |
9 | pass | pass | myarray[1]+=s - Append to element |
10 | pass | pass | myarray[-1]+=s - Append to last element |
11 | ok | ok | Try to append list to element |
details | details | ||
12 | pass | pass | Strings have value semantics, not reference semantics |
13 | pass | pass | typeset s+= |
14 | pass | pass | typeset s${dyn}+= |
15 | pass | pass | export readonly += |
16 | pass | pass | local += |
17 | pass | pass | assign builtin appending array: declare d+=(d e) |
18 | pass | pass | export+=array disallowed |
36 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 11 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: Unexpected left paren (might need a space before it) |
osh-cpp | 11 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: Unexpected left paren (might need a space before it) |