| status | osh | osh-cpp | |
| pass | 4 | 4 | |
| ok | 1 | 1 | |
| FAIL | 3 | 3 | |
| total | 8 | 8 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | : is special and prefix assignments persist after special builtins (set -o posix) |
| 1 | ok | ok | readonly is special and prefix assignments persist (set -o posix) |
| details | details | ||
| 2 | pass | pass | true is not special |
| 3 | FAIL | FAIL | Shift is special and the whole script exits if it returns non-zero |
| details | details | ||
| 4 | FAIL | FAIL | set is special and fails, even if using || true |
| details | details | ||
| 5 | FAIL | FAIL | Special builtins can't be redefined as functions (set -o posix) |
| details | details | ||
| 6 | pass | pass | Non-special builtins CAN be redefined as functions |
| 7 | pass | pass | command, builtin - both can be redefined, not special (regression) |
8 passed, 2 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 1 readonly is special and prefix assignments persist (set -o posix) stdout: foo=bar spam=eggs bar Nonestderr: |
| osh-cpp | 1 readonly is special and prefix assignments persist (set -o posix) stdout: foo=bar spam=eggs bar Nonestderr: |
| osh | 3 Shift is special and the whole script exits if it returns non-zero [osh stdout] Expected '', got 'status=1\n' [osh status] Expected 1, got 0 stdout: status=1stderr: |
| osh-cpp | 3 Shift is special and the whole script exits if it returns non-zero [osh-cpp stdout] Expected '', got 'status=1\n' [osh-cpp status] Expected 1, got 0 stdout: status=1stderr: |
| osh | 4 set is special and fails, even if using || true [osh stdout] Expected 'ok\n', got 'ok\nshould not get here\n' [osh status] Expected 1, got 0 stdout: ok should not get herestderr: shopt -s invalid_ || true ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'invalid_' set -o invalid_ || true ^~~ [ stdin ]:3: 'set' got invalid option 'invalid_' |
| osh-cpp | 4 set is special and fails, even if using || true [osh-cpp stdout] Expected 'ok\n', got 'ok\nshould not get here\n' [osh-cpp status] Expected 1, got 0 stdout: ok should not get herestderr: shopt -s invalid_ || true ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'invalid_' set -o invalid_ || true ^~~ [ stdin ]:3: 'set' got invalid option 'invalid_' |
| osh | 5 Special builtins can't be redefined as functions (set -o posix) [osh status] Expected 2, got 0 stdout: status=0stderr: |
| osh-cpp | 5 Special builtins can't be redefined as functions (set -o posix) [osh-cpp status] Expected 2, got 0 stdout: status=0stderr: |