Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 22:35:51 +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: r245392 - head/tools/regression/bin/sh/expansion
Message-ID:  <201301132235.r0DMZpBp019790@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Jan 13 22:35:51 2013
New Revision: 245392
URL: http://svnweb.freebsd.org/changeset/base/245392

Log:
  sh: Add testcase that $? is preserved into a simple command substitution.
  
  The test builtins/trap6.0 already uses this but having it separate eases
  diagnosis if this would break.

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

Added: head/tools/regression/bin/sh/expansion/cmdsubst16.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/expansion/cmdsubst16.0	Sun Jan 13 22:35:51 2013	(r245392)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+f() { return 3; }
+f
+[ `echo $?` = 3 ]



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