svn commit: r245392 - head/tools/regression/bin/sh/expansion

Jilles Tjoelker jilles at FreeBSD.org
Sun Jan 13 22:35:52 UTC 2013


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 ]


More information about the svn-src-head mailing list