spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 4 | 4 | |
FAIL | 4 | 4 | |
total | 8 | 8 | |
case | osh | osh-cpp | description |
0 | FAIL | FAIL | : is special and prefix assignments persist after special builtins |
details | details | ||
1 | pass | pass | readonly is special and prefix assignments persist |
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 |
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, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 0 : is special and prefix assignments persist after special builtins [osh stdout] Expected 'foo=bar\n', got 'foo=\n' stdout: foo=stderr: |
osh-cpp | 0 : is special and prefix assignments persist after special builtins [osh-cpp stdout] Expected 'foo=bar\n', got 'foo=\n' stdout: foo=stderr: |
osh | 3 Shift is special and the whole script exits if it returns non-zero [osh stdout] Expected u'', 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 u'', 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 [osh status] Expected 2, got 0 stdout: status=0stderr: |
osh-cpp | 5 Special builtins can't be redefined as functions [osh-cpp status] Expected 2, got 0 stdout: status=0stderr: |