sh: Test EXIT trap with multiple statements in it
Reviewed by: jilles MFC after: 2 weeks
This commit is contained in:
parent
b4240b64aa
commit
cb1c8e8ced
3
tools/regression/bin/sh/builtins/trap9.0
Normal file
3
tools/regression/bin/sh/builtins/trap9.0
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1
|
Loading…
x
Reference in New Issue
Block a user