spec test index / oilshell.org
98 passed, 6 OK, 3 not implemented, 7 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
dash | 3 SIGINT and INT are aliases stdout: 1 0stderr: trap: SIGINT: bad trap |
dash | 4 trap without args prints traps, like trap -p stdout: stderr: |
mksh | 4 trap without args prints traps, like trap -p stdout: status=0 status=1stderr: |
ash | 4 trap without args prints traps, like trap -p stdout: status=0 status=1stderr: |
osh | 4 trap without args prints traps, like trap -p [osh stdout] Expected "status=0\ntrap -- 'true' EXIT\nstatus=0\n", got 'status=0\nstatus=1\n' stdout: status=0 status=1stderr: trap | grep EXIT ^~~~ [ -c flag ]:6: 'trap' requires a code string |
osh | 5 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 ]:4: Invalid signal or hook 'KILL' trap 'echo hi' STOP ^~~~ [ stdin ]:7: Signal 'STOP' can't be handled |
dash | 6 Invalid trap invocation stdout: status=1stderr: trap: foo: bad trap |
mksh | 6 Invalid trap invocation stdout: status=0stderr: |
ash | 6 Invalid trap invocation stdout: status=1stderr: ash: trap: line 1: foo: invalid signal specification |
dash | 7 exit 1 when trap code string is invalid stdout: status=0stderr: dash: 1: Syntax error: end of file unexpected |
bash | 7 exit 1 when trap code string is invalid stdout: status=0stderr: bash: exit trap: line 1: syntax error near unexpected token `newline' bash: exit trap: line 1: `echo <' |
mksh | 7 exit 1 when trap code string is invalid stdout: status=0stderr: mksh: syntax error: unexpected EOF |
ash | 7 exit 1 when trap code string is invalid stdout: status=0stderr: ash: syntax error: unexpected end of file |
mksh | 10 trap EXIT with PARSE error stdout: FAILEDstderr: mksh: <stdin>[2]: syntax error: 'newline' unexpected |
dash | 15 trap 1 is equivalent to SIGHUP; HUP is equivalent to SIGHUP stdout: status=1 status=0 status=0 status=0stderr: trap: SIGHUP: bad trap |
mksh | 20 trap INT, sleep, SIGINT: non-interactively stdout: mkshstderr: |
osh | 20 trap INT, sleep, SIGINT: non-interactively stdout: int status=0stderr: |