spec test index / oilshell.org
83 passed, 5 OK, 6 not implemented, 5 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
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 ]:4: Invalid signal or hook 'KILL' trap 'echo hi' STOP ^~~~ [ stdin ]:7: Signal 'STOP' can't be handled |
dash | 4 SIGINT and INT are aliases stdout: 1 0stderr: trap: SIGINT: bad trap |
dash | 5 Invalid trap invocation stdout: status=1stderr: trap: foo: bad trap |
mksh | 5 Invalid trap invocation stdout: status=0stderr: |
ash | 5 Invalid trap invocation stdout: status=1stderr: ash: trap: line 1: foo: invalid signal specification |
dash | 6 exit 1 when trap code string is invalid stdout: status=0stderr: dash: 1: Syntax error: end of file unexpected |
bash | 6 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 | 6 exit 1 when trap code string is invalid stdout: status=0stderr: mksh: syntax error: unexpected EOF |
ash | 6 exit 1 when trap code string is invalid stdout: status=0stderr: ash: syntax error: unexpected end of file |
mksh | 9 trap EXIT with PARSE error stdout: FAILEDstderr: mksh: <stdin>[2]: syntax error: 'newline' unexpected |
dash | 13 trap EXIT doesn't run with shopt -s no_fork_last stdout: exit1 exit2 exit3stderr: dash: 1: shopt: not found |
bash | 13 trap EXIT doesn't run with shopt -s no_fork_last stdout: exit1 exit2 exit3stderr: bash: line 1: shopt: no_fork_last: invalid shell option name |
mksh | 13 trap EXIT doesn't run with shopt -s no_fork_last stdout: exit1 exit2 exit3stderr: mksh: shopt: not found |
ash | 13 trap EXIT doesn't run with shopt -s no_fork_last stdout: exit1 exit2 exit3stderr: ash: shopt: not found |
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 | 19 trap INT, sleep, SIGINT: non-interactively stdout: mkshstderr: |
osh | 19 trap INT, sleep, SIGINT: non-interactively [osh stdout] Expected '', got 'osh\n' stdout: oshstderr: |