From owner-svn-src-all@FreeBSD.ORG Sun Dec 6 23:31:24 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05CE1106568F; Sun, 6 Dec 2009 23:31:24 +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 E8F0D8FC17; Sun, 6 Dec 2009 23:31:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nB6NVNo7035036; Sun, 6 Dec 2009 23:31:23 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB6NVNDo035034; Sun, 6 Dec 2009 23:31:23 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <200912062331.nB6NVNDo035034@svn.freebsd.org> From: Jilles Tjoelker Date: Sun, 6 Dec 2009 23:31:23 +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: r200193 - head/tools/regression/bin/sh/parser X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2009 23:31:24 -0000 Author: jilles Date: Sun Dec 6 23:31:23 2009 New Revision: 200193 URL: http://svn.freebsd.org/changeset/base/200193 Log: sh: Test ; as well as ; in the 'for' parser test. Modified: head/tools/regression/bin/sh/parser/for1.0 Modified: head/tools/regression/bin/sh/parser/for1.0 ============================================================================== --- head/tools/regression/bin/sh/parser/for1.0 Sun Dec 6 23:28:49 2009 (r200192) +++ head/tools/regression/bin/sh/parser/for1.0 Sun Dec 6 23:31:23 2009 (r200193) @@ -4,7 +4,7 @@ nl=' ' list=' a b c' for s1 in "$nl" " "; do - for s2 in "$nl" ";"; do + for s2 in "$nl" ";" ";$nl"; do for s3 in "$nl" " "; do r='' eval "for i${s1}in ${list}${s2}do${s3}r=\"\$r \$i\"; done" @@ -13,7 +13,7 @@ for s1 in "$nl" " "; do done done set -- $list -for s2 in "$nl" " " ";"; do # s2=";" is an extension to POSIX +for s2 in "$nl" " " ";" ";$nl"; do # s2=";" and ";$nl" are extensions to POSIX for s3 in "$nl" " "; do r='' eval "for i${s2}do${s3}r=\"\$r \$i\"; done" @@ -21,7 +21,7 @@ for s2 in "$nl" " " ";"; do # s2=";" is done done for s1 in "$nl" " "; do - for s2 in "$nl" ";"; do + for s2 in "$nl" ";" ";$nl"; do for s3 in "$nl" " "; do eval "for i${s1}in${s2}do${s3}exit 1; done" done