svn commit: r216871 - head/tools/regression/bin/sh/builtins

Jilles Tjoelker jilles at FreeBSD.org
Sat Jan 1 15:25:15 UTC 2011


Author: jilles
Date: Sat Jan  1 15:25:15 2011
New Revision: 216871
URL: http://svn.freebsd.org/changeset/base/216871

Log:
  sh: Test that exit $? replaces the original exit status in an EXIT trap.

Added:
  head/tools/regression/bin/sh/builtins/exit1.0   (contents, props changed)

Added: head/tools/regression/bin/sh/builtins/exit1.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/exit1.0	Sat Jan  1 15:25:15 2011	(r216871)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+# exit with an argument should overwrite the exit status in an EXIT trap.
+
+trap 'true; exit $?' 0
+false


More information about the svn-src-head mailing list