Author: jilles
Date: Fri Oct 28 23:02:21 2011
New Revision: 226892
URL: http://svn.freebsd.org/changeset/base/226892

Log:
  sh: Add test for exit status of for loop without items.
  
  POSIX says the exit status of a for loop without any items shall be 0. There
  are no exceptions if the exit status of the previous command was not 0 or if
  the item list contains a command substitution with non-zero exit status.

Added:
  head/tools/regression/bin/sh/builtins/for1.0   (contents, props changed)

Added: head/tools/regression/bin/sh/builtins/for1.0
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/for1.0        Fri Oct 28 23:02:21 
2011        (r226892)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+false
+for i in `false`; do exit 3; done
_______________________________________________
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