svn commit: r210738 - head/tools/regression/bin/sh/builtins
Jilles Tjoelker
jilles at FreeBSD.org
Sun Aug 1 22:39:08 UTC 2010
Author: jilles
Date: Sun Aug 1 22:39:07 2010
New Revision: 210738
URL: http://svn.freebsd.org/changeset/base/210738
Log:
sh: Add a test for a corner case in eval that already works correctly.
Added:
head/tools/regression/bin/sh/builtins/eval4.0 (contents, props changed)
Added: head/tools/regression/bin/sh/builtins/eval4.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/eval4.0 Sun Aug 1 22:39:07 2010 (r210738)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+# eval should preserve $? from command substitutions when starting
+# the parsed command.
+[ $(eval 'echo $?' $(false)) = 1 ]
More information about the svn-src-all
mailing list