spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 13 | 13 | |
ok | 3 | 3 | |
N-I | 2 | 2 | |
FAIL | 1 | 1 | |
total | 19 | 19 | |
case | osh | osh-cpp | description |
0 | pass | pass | trap -l |
1 | pass | pass | trap -p |
2 | pass | pass | trap -p in child is BUGGY in bash |
3 | pass | pass | trap DEBUG ignores $? |
4 | pass | pass | but trap DEBUG respects errexit |
5 | ok | ok | trap DEBUG with 'return' |
details | details | ||
6 | pass | pass | trap DEBUG with 'exit' |
7 | pass | pass | trap DEBUG with non-compound commands |
8 | pass | pass | trap DEBUG and control flow |
9 | pass | pass | trap DEBUG and command sub / subshell |
10 | pass | pass | trap DEBUG not run in forked interpreter for first pipeline part |
11 | ok | ok | One 'echo' in first pipeline part - why does bash behave differently from case above? |
details | details | ||
12 | ok | ok | trap DEBUG and pipeline (lastpipe difference) |
details | details | ||
13 | pass | pass | trap DEBUG function call |
14 | pass | pass | trap DEBUG case |
15 | N-I | N-I | trap DEBUG for each |
details | details | ||
16 | N-I | N-I | trap DEBUG for expr |
details | details | ||
17 | pass | pass | trap DEBUG if while |
18 | FAIL | FAIL | trap RETURN |
details | details |
26 passed, 6 OK, 4 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 5 trap DEBUG with 'return' stdout: [7]stderr: |
osh-cpp | 5 trap DEBUG with 'return' stdout: [7]stderr: |
osh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? stdout: LINENO=7 pipeline LINENO=8 okstderr: |
osh-cpp | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? stdout: LINENO=7 pipeline LINENO=8 okstderr: |
osh | 12 trap DEBUG and pipeline (lastpipe difference) stdout: [6] a [6] b [8] 2 [10] 1 [14] 1stderr: |
osh-cpp | 12 trap DEBUG and pipeline (lastpipe difference) stdout: [6] a [6] b [8] 2 [10] 1 [14] 1stderr: |
osh | 15 trap DEBUG for each stdout: [7] x=1 [7] x=2 [10] okstderr: |
osh-cpp | 15 trap DEBUG for each stdout: [7] x=1 [7] x=2 [10] okstderr: |
osh | 16 trap DEBUG for expr stdout: [7] i=3 [7] i=4 [10] okstderr: |
osh-cpp | 16 trap DEBUG for expr stdout: [7] i=3 [7] i=4 [10] okstderr: |
osh | 18 trap RETURN [osh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |
osh-cpp | 18 trap RETURN [osh-cpp stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |