svn commit: r230211 - head/tools/regression/bin/sh/builtins
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Mon Jan 16 10:59:44 UTC 2012
Author: dumbbell
Date: Mon Jan 16 10:59:44 2012
New Revision: 230211
URL: http://svn.freebsd.org/changeset/base/230211
Log:
sh: Test EXIT trap with multiple statements in it
Reviewed by: jilles
MFC after: 2 weeks
Added:
head/tools/regression/bin/sh/builtins/trap9.0 (contents, props changed)
Added: head/tools/regression/bin/sh/builtins/trap9.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/trap9.0 Mon Jan 16 10:59:44 2012 (r230211)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1
More information about the svn-src-all
mailing list