status | osh | osh-cpp | |
pass | 6 | 6 | |
ok | 1 | 1 | |
FAIL | 2 | 2 | |
total | 9 | 9 | |
case | osh | osh-cpp | description |
0 | pass | pass | SHELLOPTS is updated when options are changed |
1 | ok | ok | SHELLOPTS is readonly |
details | details | ||
2 | FAIL | FAIL | SHELLOPTS and BASHOPTS are non-empty |
details | details | ||
3 | pass | pass | SHELLOPTS reflects flags like sh -x |
4 | pass | pass | export SHELLOPTS does cross-process tracing |
5 | pass | pass | export SHELLOPTS does cross-process tracing with bash |
6 | pass | pass | OSH calling bash with SHELLOPTS does not change braceexpand |
7 | FAIL | FAIL | If shopt --set xtrace is allowed, it should update SHELLOPTS, not BASHOPTS |
details | details | ||
8 | pass | pass | shopt -s progcomp hostcomplete are stubs (bash-completion) |
12 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 1 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh-cpp | 1 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh | 2 SHELLOPTS and BASHOPTS are non-empty [osh stdout] Expected 'shellopts is set\nbashopts is set\n', got 'shellopts is set\n' [osh status] Expected 0, got 1 stdout: shellopts is setstderr: echo bashopts ${BASHOPTS:?} > /dev/null ^~~~~~~~ [ stdin ]:10: fatal: Var BASHOPTS is unset |
osh-cpp | 2 SHELLOPTS and BASHOPTS are non-empty [osh-cpp stdout] Expected 'shellopts is set\nbashopts is set\n', got 'shellopts is set\n' [osh-cpp status] Expected 0, got 1 stdout: shellopts is setstderr: echo bashopts ${BASHOPTS:?} > /dev/null ^~~~~~~~ [ stdin ]:10: fatal: Var BASHOPTS is unset |
osh | 7 If shopt --set xtrace is allowed, it should update SHELLOPTS, not BASHOPTS [osh stdout] Expected 'SHELLOPTS=xtrace\nSHELLOPTS=xtrace\nSHELLOPTS=\n' Got 'SHELLOPTS=hashall\nSHELLOPTS=hashall:xtrace\nSHELLOPTS=hashall\n' stdout: SHELLOPTS=hashall SHELLOPTS=hashall:xtrace SHELLOPTS=hashallstderr: + echo 'SHELLOPTS=hashall' + set -x + echo 'SHELLOPTS=hashall:xtrace' + set '+x' |
osh-cpp | 7 If shopt --set xtrace is allowed, it should update SHELLOPTS, not BASHOPTS [osh-cpp stdout] Expected 'SHELLOPTS=xtrace\nSHELLOPTS=xtrace\nSHELLOPTS=\n' Got 'SHELLOPTS=hashall\nSHELLOPTS=hashall:xtrace\nSHELLOPTS=hashall\n' stdout: SHELLOPTS=hashall SHELLOPTS=hashall:xtrace SHELLOPTS=hashallstderr: + echo 'SHELLOPTS=hashall' + set -x + echo 'SHELLOPTS=hashall:xtrace' + set '+x' |