1230211Sdumbbell# $FreeBSD: head/tools/regression/bin/sh/builtins/trap9.0 230211 2012-01-16 10:59:44Z dumbbell $ 2230211Sdumbbell 3230211Sdumbbelltest "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1 4