Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2011 23:00:38 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217172 - head/tools/regression/bin/sh/builtins
Message-ID:  <201101082300.p08N0cuD018918@svn.freebsd.org>

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



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