xref: /freebsd/bin/sh/tests/builtins/trap8.0 (revision 7a0c41d5d7d4e9770ef6f5d56f893efc8f18ab7c)
1# $FreeBSD$
2
3# I am not sure if POSIX requires the shell to continue processing
4# further trap names in the same trap command after an invalid one.
5
6test -n "$(trap true garbage TERM 2>/dev/null || trap)" || exit 3
7exit 0
8