36 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh-cpp | 6 trap ERR pipelines without simple commands [osh-cpp stdout] Expected 'assign\ndparen\ndbracket\nsubshell\nsubshell2\ngroup\nok\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: a=$(false) | a=$(false) | a=$(false)
^
[ stdin ]:2: Invalid word while parsing command list
|
| osh-cpp | 9 trap ERR doesn't run in subprograms - subshell, command sub, async [osh-cpp stdout] Expected 'subshell\nasync\nline=11\nok\n' Got 'subshell\n' [osh-cpp status] Expected 0 Got 2 stdout: subshellstderr: x=$( false; echo command sub )
^
[ stdin ]:5: Invalid word while parsing command list
|
| osh-cpp | 10 set -o errtrace: trap ERR runs in subprograms [osh-cpp stdout] Expected 'line=6\nsubshell\nline=10\nok\n' Got 'line=6\nsubshell\n' [osh-cpp status] Expected 0 Got 2 stdout: line=6 subshellstderr: x=$( false; echo command sub )
^
[ stdin ]:8: Invalid word while parsing command list
|
| osh | 12 set -o errtrace: trap ERR with & [osh stdout] Expected 'line=8\nasync\n' Got 'line=6\nline=8\nasync\n' stdout: line=6 line=8 asyncstderr: |
| osh-cpp | 12 set -o errtrace: trap ERR with & [osh-cpp stdout] Expected 'line=8\nasync\n' Got 'line=6\nline=8\nasync\n' stdout: line=6 line=8 asyncstderr: |
| osh | 15 set -o errtrace - trap ERR runs in shell functions (LINENO) [osh stdout] Expected 'line=14\nnow with errtrace\nline=4\nline=10\nline=20\nok\n' Got 'line=10\nnow with errtrace\nline=4\nline=10\nline=10\nok\n' stdout: line=10 now with errtrace line=4 line=10 line=10 okstderr: |
| osh-cpp | 15 set -o errtrace - trap ERR runs in shell functions (LINENO) [osh-cpp stdout] Expected 'line=14\nnow with errtrace\nline=4\nline=10\nline=20\nok\n' Got 'line=10\nnow with errtrace\nline=4\nline=10\nline=10\nok\n' stdout: line=10 now with errtrace line=4 line=10 line=10 okstderr: |
| osh-cpp | 16 trap ERR with "atoms": assignment (( [[ [osh-cpp stdout] Expected 'line=3\nline=5\nline=7\nok\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: x=$(false)
^
[ stdin ]:3: Invalid word while parsing command list
|
| osh | 21 trap ERR and pipelines - PIPESTATUS difference stdout: A err [] status=1 [] B err [] status=1 [0 1] err [] status=1 [0 1 0] okstderr: |
| osh-cpp | 21 trap ERR and pipelines - PIPESTATUS difference stdout: A err [] status=1 [] B err [] status=1 [0 1] err [] status=1 [0 1 0] okstderr: |