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 ]
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to