opnsense-src/tools/regression/bin/sh/builtins/trap8.0
Jilles Tjoelker a9942298fe sh: Split off some special behaviour into separate tests.
This allows some other shells to pass the tests for basic behaviour.
2011-02-20 14:18:58 +00:00

7 lines
222 B
Text

# $FreeBSD$
# I am not sure if POSIX requires the shell to continue processing
# further trap names in the same trap command after an invalid one.
test -n "$(trap true garbage TERM 2>/dev/null || trap)" || exit 3
exit 0