From owner-svn-src-head@FreeBSD.ORG Fri Oct 28 23:02:21 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A26FD106564A; Fri, 28 Oct 2011 23:02:21 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 920BD8FC0C; Fri, 28 Oct 2011 23:02:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SN2LGu081788; Fri, 28 Oct 2011 23:02:21 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p9SN2L5T081787; Fri, 28 Oct 2011 23:02:21 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201110282302.p9SN2L5T081787@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 28 Oct 2011 23:02:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r226892 - head/tools/regression/bin/sh/builtins X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 23:02:21 -0000 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