spec test index / oilshell.org
48 passed, 1 OK, 5 not implemented, 6 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 4 trap ERR and || conditional [osh stdout] Expected 'line=3\nok\nok\n', got 'line=3\nline=3\nok\nok\n' stdout: line=3 line=3 ok okstderr: |
mksh | 5 trap ERR and pipeline stdout: line=1 line=1stderr: |
ash | 5 trap ERR and pipeline stdout: line=1 line=1stderr: |
osh | 5 trap ERR and pipeline [osh stdout] Expected 'line=3\nline=5\n', got 'line=3\nline=3\nline=5\nline=5\n' stdout: line=3 line=3 line=5 line=5stderr: |
osh | 6 trap ERR does not run in errexit situations [osh stdout] Expected 'until\nline=16\nline=20\nline=20\nline=20\nok\n' Got 'until\nline=16\nline=16\nline=20\nline=20\nline=20\nok\n' stdout: until line=16 line=16 line=20 line=20 line=20 okstderr: |
mksh | 8 trap ERR not active in shell functions in (bash behavior) stdout: line=4stderr: |
mksh | 9 trap ERR shell function - with errtrace stdout: line=4 line=10stderr: mksh: <stdin>[16]: set: errtrace: bad option |
osh | 9 trap ERR shell function - with errtrace [osh stdout] Expected 'line=14\nnow with errtrace\nline=4\nline=10\nline=20\nok\n' Got 'line=10\nline=16\nnow with errtrace\nline=10\nok\n' stdout: line=10 line=16 now with errtrace line=10 okstderr: set -o errtrace ^~~ [ stdin ]:16: 'set' got invalid option 'errtrace' |
bash | 11 trap ERR with redirect stdout: line=3 line=3 okstderr: bash: line 7: /zz: Permission denied |
mksh | 11 trap ERR with redirect stdout: line=3 line=3 okstderr: mksh: <stdin>[7]: can't create /zz: Permission denied |
ash | 11 trap ERR with redirect stdout: line=3 okstderr: ash: can't create /zz: Permission denied |
bash | 12 trap ERR with YSH proc stdout: stderr: |
mksh | 12 trap ERR with YSH proc stdout: stderr: |
ash | 12 trap ERR with YSH proc stdout: stderr: |
ash | 14 trap ERR and pipelines (lastpipe and PIPESTATUS difference) stdout: stderr: |
osh | 14 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: |