spec test index / oilshell.org
status | bash | mksh | ash | osh | |
pass | 9 | 7 | 8 | 4 | |
ok | 0 | 0 | 0 | 1 | |
N-I | 1 | 2 | 2 | 0 | |
BUG | 0 | 1 | 0 | 0 | |
FAIL | 0 | 0 | 0 | 5 | |
total | 10 | 10 | 10 | 10 | |
case | bash | mksh | ash | osh | description |
0 | pass | pass | pass | pass | trap can use original $LINENO |
1 | pass | pass | pass | FAIL | trap ERR and if statement |
details | |||||
2 | pass | pass | pass | FAIL | trap ERR does not run in errexit situations |
details | |||||
3 | pass | pass | pass | FAIL | trap ERR pipeline (also errexit) |
details | |||||
4 | pass | N-I | pass | FAIL | trap ERR not active in shell functions in (bash behavior) |
details | details | ||||
5 | pass | BUG | pass | FAIL | trap ERR shell function - with errtrace |
details | details | ||||
6 | N-I | N-I | N-I | pass | trap ERR with YSH proc |
details | details | details | |||
7 | pass | pass | pass | pass | trap ERR |
8 | pass | pass | N-I | ok | trap ERR and pipelines (lastpipe and PIPESTATUS difference) |
details | details | ||||
9 | pass | pass | pass | pass | error in trap ERR (recursive) |
28 passed, 1 OK, 5 not implemented, 1 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 1 trap ERR and if statement [osh stdout] Expected '', got 'err\n' stdout: errstderr: |
osh | 2 trap ERR does not run in errexit situations [osh stdout] Expected 'until\nline=16\nline=20\nline=20\nline=20\nok\n' Got 'line=3\nline=7\nline=11\nuntil\nline=16\nline=16\nline=16\nline=16\nline=18\nline=20\nline=20\nline=20\nok\n' stdout: line=3 line=7 line=11 until line=16 line=16 line=16 line=16 line=18 line=20 line=20 line=20 okstderr: |
osh | 3 trap ERR pipeline (also errexit) [osh stdout] Expected 'err\n', got 'err\nerr\nerr\n' stdout: err err errstderr: |
mksh | 4 trap ERR not active in shell functions in (bash behavior) stdout: line=4stderr: |
osh | 4 trap ERR not active in shell functions in (bash behavior) [osh stdout] Expected '', got 'line=4\n' stdout: line=4stderr: |
mksh | 5 trap ERR shell function - with errtrace stdout: line=4 line=10stderr: mksh: <stdin>[16]: set: errtrace: bad option |
osh | 5 trap ERR shell function - with errtrace [osh stdout] Expected 'line=14\nnow with errtrace\nline=4\nline=10\nline=20\nok\n' Got 'line=4\nline=10\nline=10\nline=16\nnow with errtrace\nline=4\nline=10\nline=10\nok\n' stdout: line=4 line=10 line=10 line=16 now with errtrace line=4 line=10 line=10 okstderr: set -o errtrace ^~~ [ stdin ]:16: 'set' got invalid option 'errtrace' |
bash | 6 trap ERR with YSH proc stdout: stderr: |
mksh | 6 trap ERR with YSH proc stdout: stderr: |
ash | 6 trap ERR with YSH proc stdout: stderr: |
ash | 8 trap ERR and pipelines (lastpipe and PIPESTATUS difference) stdout: stderr: |
osh | 8 trap ERR and pipelines (lastpipe and PIPESTATUS difference) stdout: A err [] status=1 [] B err [] status=1 [0 0] err [] status=1 [0 1] err [] status=1 [0 1 0] okstderr: |