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:
parent
77185f473b
commit
8c3afde82c
3
tools/regression/bin/sh/builtins/trap7.0
Normal file
3
tools/regression/bin/sh/builtins/trap7.0
Normal file
@ -0,0 +1,3 @@
|
||||
# $FreeBSD$
|
||||
|
||||
[ "$(trap 'echo trapped' EXIT)" = trapped ]
|
Loading…
Reference in New Issue
Block a user