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

Jilles Tjoelker jilles at FreeBSD.org
Sat Jan 8 23:00:38 UTC 2011


Author: jilles
Date: Sat Jan  8 23:00:38 2011
New Revision: 217172
URL: http://svn.freebsd.org/changeset/base/217172

Log:
  sh: Add simple test for 'exit' without parameters.

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

Added: head/tools/regression/bin/sh/builtins/exit2.8
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/exit2.8	Sat Jan  8 23:00:38 2011	(r217172)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+# exit without arguments is the same as exit $? outside a trap.
+
+trap 'true; true' 0
+(exit 8)
+exit


More information about the svn-src-all mailing list