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

Reply via email to