trap3.0 revision 199641
1# $FreeBSD: head/tools/regression/bin/sh/builtins/trap3.0 199641 2009-11-21 20:44:34Z jilles $ 2 3{ 4 trap '' garbage && exit 3 5 trap - garbage && exit 3 6 trap true garbage && exit 3 7 trap '' 99999 && exit 3 8 trap - 99999 && exit 3 9 trap true 99999 && exit 3 10} 2>/dev/null 11test -n "$(trap true garbage TERM 2>/dev/null || trap)" || exit 3 12exit 0 13