freebsd-nq/bin/sh/tests/builtins/kill1.0
Jilles Tjoelker 4646e82dcd sh: Successfully do nothing when killing a terminated job.
If a job has terminated but is still known, silently do nothing when using
the kill builtin with the job specifier. Formerly, the shell called kill()
with the process group ID that might have been reused.
2014-03-08 19:44:34 +00:00

9 lines
50 B
Plaintext

# $FreeBSD$
: &
p1=$!
: &
p2=$!
wait $p2
kill %1