From owner-svn-src-head@FreeBSD.ORG Fri Jun 3 21:17:43 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 10AB510656A5; Fri, 3 Jun 2011 21:17:43 +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 F3DB88FC18; Fri, 3 Jun 2011 21:17:42 +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 p53LHgH7080392; Fri, 3 Jun 2011 21:17:42 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p53LHg7Y080389; Fri, 3 Jun 2011 21:17:42 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201106032117.p53LHg7Y080389@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 3 Jun 2011 21:17:42 +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: r222661 - head/tools/regression/bin/sh/execution 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, 03 Jun 2011 21:17:43 -0000 Author: jilles Date: Fri Jun 3 21:17:42 2011 New Revision: 222661 URL: http://svn.freebsd.org/changeset/base/222661 Log: sh: Add tests for -n flag. These already pass. Added: head/tools/regression/bin/sh/execution/set-n1.0 (contents, props changed) head/tools/regression/bin/sh/execution/set-n2.0 (contents, props changed) head/tools/regression/bin/sh/execution/set-n3.0 (contents, props changed) Added: head/tools/regression/bin/sh/execution/set-n1.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/execution/set-n1.0 Fri Jun 3 21:17:42 2011 (r222661) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +v=$( ($SH -n <<'EOF' +for +EOF +) 2>&1 >/dev/null) +[ $? -ne 0 ] && [ -n "$v" ] Added: head/tools/regression/bin/sh/execution/set-n2.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/execution/set-n2.0 Fri Jun 3 21:17:42 2011 (r222661) @@ -0,0 +1,5 @@ +# $FreeBSD$ + +$SH -n <<'EOF' +echo bad +EOF Added: head/tools/regression/bin/sh/execution/set-n3.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/execution/set-n3.0 Fri Jun 3 21:17:42 2011 (r222661) @@ -0,0 +1,4 @@ +# $FreeBSD$ + +v=$( ($SH -nc 'for') 2>&1 >/dev/null) +[ $? -ne 0 ] && [ -n "$v" ]