summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2012-01-16 10:59:44 +0000
committerdumbbell <dumbbell@FreeBSD.org>2012-01-16 10:59:44 +0000
commit4e22d62dd60e215d56c8fe89a74171b4c90d3f2e (patch)
tree675638625ee5a897098d7a9432803da152bfb25b /tools
parentdb72d40eb93487868359ef8e2fd293c63b753754 (diff)
downloadFreeBSD-src-4e22d62dd60e215d56c8fe89a74171b4c90d3f2e.zip
FreeBSD-src-4e22d62dd60e215d56c8fe89a74171b4c90d3f2e.tar.gz
sh: Test EXIT trap with multiple statements in it
Reviewed by: jilles MFC after: 2 weeks
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/builtins/trap9.03
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/trap9.0 b/tools/regression/bin/sh/builtins/trap9.0
new file mode 100644
index 0000000..0f584ec
--- /dev/null
+++ b/tools/regression/bin/sh/builtins/trap9.0
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1
OpenPOWER on IntegriCloud