| status | osh | osh-cpp | |
| pass | 11 | 9 | |
| FAIL | 0 | 2 | |
| total | 11 | 11 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | Truncating 'exit' status |
| 1 | pass | pass | Truncating 'return' status |
| 2 | pass | pass | subshell OverflowError https://github.com/oilshell/oil/issues/996 |
| 3 | pass | pass | func subshell OverflowError https://github.com/oilshell/oil/issues/996 |
| 4 | pass | pass | If empty command |
| 5 | pass | pass | If subshell true |
| 6 | pass | pass | If subshell true WITH OUTPUT is different |
| 7 | pass | pass | If subshell true WITH ARGUMENT |
| 8 | pass | pass | If subshell false -- exit code is propagated in a weird way (strict_argv prevents) |
| 9 | pass | FAIL | Exit code when command sub evaluates to empty str, e.g. `false` (#2416) |
| details | |||
| 10 | pass | FAIL | More test cases with empty argv |
| details |
20 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh-cpp | 9 Exit code when command sub evaluates to empty str, e.g. `false` (#2416) [osh-cpp stdout] Expected '0\n1\n0\n1\n---\n0\n1\n0\n1\n' Got '0\n1\n' [osh-cpp status] Expected 0 Got 2 stdout: 0 1stderr: $(true); echo $?
^
[ stdin ]:3: Invalid word while parsing command list
|
| osh-cpp | 10 More test cases with empty argv [osh-cpp stdout] Expected 'status=0\nstatus=42\nstatus=43\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: true $(false)
^
[ stdin ]:1: Invalid word while parsing command list
|