svn commit: r217996 - head/tools/regression/bin/sh/builtins
Jilles Tjoelker
jilles at FreeBSD.org
Thu Jan 27 23:08:21 UTC 2011
Author: jilles
Date: Thu Jan 27 23:08:20 2011
New Revision: 217996
URL: http://svn.freebsd.org/changeset/base/217996
Log:
sh: Add test for EXIT trap in command substitution.
This is not really realistic but is an opposition to $(trap).
Added:
head/tools/regression/bin/sh/builtins/trap7.0 (contents, props changed)
Added: head/tools/regression/bin/sh/builtins/trap7.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/trap7.0 Thu Jan 27 23:08:20 2011 (r217996)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+[ "$(trap 'echo trapped' EXIT)" = trapped ]
More information about the svn-src-head
mailing list