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

Jilles Tjoelker jilles at FreeBSD.org
Sat Apr 6 22:30:47 UTC 2013


Author: jilles
Date: Sat Apr  6 22:30:46 2013
New Revision: 249220
URL: http://svnweb.freebsd.org/changeset/base/249220

Log:
  sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.

Added:
  head/tools/regression/bin/sh/builtins/eval6.0
     - copied, changed from r248873, head/tools/regression/bin/sh/builtins/eval4.0

Copied and modified: head/tools/regression/bin/sh/builtins/eval6.0 (from r248873, head/tools/regression/bin/sh/builtins/eval4.0)
==============================================================================
--- head/tools/regression/bin/sh/builtins/eval4.0	Fri Mar 29 08:49:27 2013	(r248873, copy source)
+++ head/tools/regression/bin/sh/builtins/eval6.0	Sat Apr  6 22:30:46 2013	(r249220)
@@ -2,4 +2,4 @@
 
 # eval should preserve $? from command substitutions when starting
 # the parsed command.
-[ $(eval 'echo $?' $(false)) = 1 ]
+[ $(false; eval 'echo $?' $(:)) = 0 ]


More information about the svn-src-all mailing list