spec test index / oilshell.org
51 passed, 3 OK, 11 not implemented, 4 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
dash | 0 trap -l stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: trap: Illegal option -l |
mksh | 0 trap -l stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: trap: -l: unknown option |
osh | 1 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:3: Signal 'KILL' can't be handled trap 'echo hi' STOP ^~~~ [ stdin ]:5: Signal 'STOP' can't be handled |
dash | 2 trap -p stdout: exitstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: trap: Illegal option -p |
mksh | 2 trap -p stdout: exitstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: trap: -p: unknown option |
dash | 5 SIGINT and INT are aliases stdout: 1 0stderr: trap: SIGINT: bad trap |
dash | 6 Invalid trap invocation stdout: status=1stderr: trap: foo: bad trap |
mksh | 6 Invalid trap invocation stdout: status=0stderr: |
dash | 7 exit 1 when trap code string is invalid stdout: status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: end of file unexpected |
bash | 7 exit 1 when trap code string is invalid stdout: status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: exit trap: line 1: syntax error near unexpected token `newline' /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: exit trap: line 1: `echo <' |
mksh | 7 exit 1 when trap code string is invalid stdout: status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: syntax error: unexpected EOF |
mksh | 10 trap EXIT with PARSE error stdout: FAILEDstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: 'newline' unexpected |
dash | 12 trap DEBUG stdout: 1 2stderr: trap: DEBUG: bad trap |
mksh | 12 trap DEBUG stdout: 1 2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
osh | 12 trap DEBUG [osh stdout] Expected 'debuglog [x y]\n1\ndebuglog [x y]\n2\n', got '1\n2\n' stdout: 1 2stderr: osh warning: The 'DEBUG' hook isn't yet implemented |
dash | 13 trap RETURN stdout: -- f -- -- g -- return-helper.shstderr: trap: RETURN: bad trap |
mksh | 13 trap RETURN stdout: -- f -- -- g -- return-helper.shstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[16]: trap: bad signal 'RETURN' |
osh | 13 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 yet implemented |
dash | 14 trap ERR and disable it stdout: 1 2 3stderr: trap: ERR: bad trap trap: ERR: bad trap |
osh | 14 trap ERR and disable it [osh stdout] Expected '1\nerr [x y] 1\n2\n3\n', got '1\n2\n3\n' stdout: 1 2 3stderr: osh warning: The 'ERR' hook isn't yet implemented |
dash | 16 trap 1 is equivalent to SIGHUP; HUP is equivalent to SIGHUP stdout: status=1 status=0 status=0 status=0stderr: trap: SIGHUP: bad trap |