Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2011 23:02:21 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226892 - head/tools/regression/bin/sh/builtins
Message-ID:  <201110282302.p9SN2L5T081787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110282302.p9SN2L5T081787>