sh: Test EXIT trap with multiple statements in it

Reviewed by:	jilles
MFC after:	2 weeks
This commit is contained in:
Jean-Sébastien Pédron 2012-01-16 10:59:44 +00:00
parent b4240b64aa
commit cb1c8e8ced

View File

@ -0,0 +1,3 @@
# $FreeBSD$
test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1