spec test index / oilshell.org
status | bash | osh | |
pass | 15 | 11 | |
ok | 0 | 2 | |
N-I | 0 | 2 | |
BUG | 1 | 0 | |
FAIL | 0 | 1 | |
total | 16 | 16 | |
case | bash | osh | description |
0 | pass | pass | trap -l |
1 | pass | pass | trap -p |
2 | BUG | pass | trap -p in child is BUGGY in bash |
details | |||
3 | pass | pass | trap DEBUG ignores $? |
4 | pass | pass | but trap DEBUG respects errexit |
5 | pass | ok | trap DEBUG with 'return' |
details | |||
6 | pass | pass | trap DEBUG with 'exit' |
7 | pass | pass | trap DEBUG with non-compound commands |
8 | pass | pass | trap DEBUG and command sub / subshell |
9 | pass | ok | trap DEBUG and pipeline (lastpipe difference) |
details | |||
10 | pass | pass | trap DEBUG function call |
11 | pass | pass | trap DEBUG case |
12 | pass | N-I | trap DEBUG for each |
details | |||
13 | pass | N-I | trap DEBUG for expr |
details | |||
14 | pass | pass | trap DEBUG if while |
15 | pass | FAIL | trap RETURN |
details |
26 passed, 2 OK, 2 not implemented, 1 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
bash | 2 trap -p in child is BUGGY in bash stdout: shown exitstderr: |
osh | 5 trap DEBUG with 'return' stdout: [8]stderr: |
osh | 9 trap DEBUG and pipeline (lastpipe difference) stdout: [6] a [6] b [8] 2 [10] 1 [14] 1stderr: |
osh | 12 trap DEBUG for each stdout: [7] x=1 [7] x=2 [10] okstderr: |
osh | 13 trap DEBUG for expr stdout: [7] i=3 [7] i=4 [10] okstderr: |
osh | 15 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 |