1 2 3
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/trap7.0 217996 2011-01-27 23:08:20Z jilles $ [ "$(trap 'echo trapped' EXIT)" = trapped ]