spec test index / oilshell.org
28 passed, 2 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped 4 failed under osh
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-cpp | 5 trap ERR and pipeline [osh-cpp 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 pipelines without simple commands [osh stdout] Expected 'assign\nsubshell\ndparen\ndbracket\nok\n', got 'assign\nassign\nsubshell\nsubshell\ndparen\ndparen\ndbracket\ndbracket\nok\n' stdout: assign assign subshell subshell dparen dparen dbracket dbracket okstderr: |
osh-cpp | 6 trap ERR pipelines without simple commands [osh-cpp stdout] Expected 'assign\nsubshell\ndparen\ndbracket\nok\n', got 'assign\nassign\nsubshell\nsubshell\ndparen\ndparen\ndbracket\ndbracket\nok\n' stdout: assign assign subshell subshell dparen dparen dbracket dbracket okstderr: |
osh | 9 set -o errtrace: trap ERR runs in subprograms [osh stdout] Expected 'line=6\nsubshell\nline=12\nasync\nline=14\nok\n' Got 'subshell\nasync\nline=14\nok\n' stdout: subshell async line=14 okstderr: set -o errtrace ^~~ [ stdin ]:3: 'set' got invalid option 'errtrace' [1] Done PID 9807 [1] Done PID 9808 |
osh-cpp | 9 set -o errtrace: trap ERR runs in subprograms [osh-cpp stdout] Expected 'line=6\nsubshell\nline=12\nasync\nline=14\nok\n' Got 'subshell\nasync\nline=14\nok\n' stdout: subshell async line=14 okstderr: set -o errtrace ^~~ [ stdin ]:3: 'set' got invalid option 'errtrace' [1] Done PID 9818 [1] Done PID 9819 |
osh | 11 set -o errtrace - trap ERR runs in shell functions [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' |
osh-cpp | 11 set -o errtrace - trap ERR runs in shell functions [osh-cpp 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' |
osh | 17 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: |
osh-cpp | 17 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: |