1217996Sjilles# $FreeBSD: head/tools/regression/bin/sh/builtins/trap7.0 217996 2011-01-27 23:08:20Z jilles $ 2217996Sjilles 3217996Sjilles[ "$(trap 'echo trapped' EXIT)" = trapped ] 4