xref: /freebsd/bin/sh/tests/execution/killed1.0 (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
1# Sometimes the "Killed" message is not flushed soon enough and it
2# is redirected along with the output of a builtin.
3# Do not change the semicolon to a newline as it would hide the bug.
4
5exec 3>&1
6exec >/dev/null 2>&1
7${SH} -c 'kill -9 $$'; : >&3 2>&3
8