(kill -1 $$)

From: Dan Jacobson (jidanni_at_jidanni.org)
Date: 11/29/04


Date: Mon, 29 Nov 2004 08:31:34 +0800

Why does this script print 3? [bash]
echo 1 $$;(echo 2 $$; kill -1 $$; echo 3); echo 4
1 8360
2 8360
3
Hangup
I would have thought it would print 4, not 3.
Is the only way to stop the subshell "exit"?