Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2012 10:59:44 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230211 - head/tools/regression/bin/sh/builtins
Message-ID:  <201201161059.q0GAxivJ031374@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201161059.q0GAxivJ031374>