sh: Add test for EXIT trap in command substitution.

This is not really realistic but is an opposition to $(trap).
This commit is contained in:
Jilles Tjoelker 2011-01-27 23:08:20 +00:00
parent 77185f473b
commit 8c3afde82c

View File

@ -0,0 +1,3 @@
# $FreeBSD$
[ "$(trap 'echo trapped' EXIT)" = trapped ]