opnsense-src/tools/regression/bin/sh/builtins/trap3.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

11 lines
194 B
Text

# $FreeBSD$
{
trap '' garbage && exit 3
trap - garbage && exit 3
trap true garbage && exit 3
trap '' 99999 && exit 3
trap - 99999 && exit 3
trap true 99999 && exit 3
} 2>/dev/null
exit 0