From owner-svn-src-head@FreeBSD.ORG Fri Jun 8 22:54:26 2012 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 4BA3B1065675; Fri, 8 Jun 2012 22:54:26 +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 370638FC16; Fri, 8 Jun 2012 22:54:26 +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 q58MsQV2090384; Fri, 8 Jun 2012 22:54:26 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q58MsPoP090382; Fri, 8 Jun 2012 22:54:26 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201206082254.q58MsPoP090382@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 8 Jun 2012 22:54:25 +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: r236771 - 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, 08 Jun 2012 22:54:26 -0000 Author: jilles Date: Fri Jun 8 22:54:25 2012 New Revision: 236771 URL: http://svn.freebsd.org/changeset/base/236771 Log: sh: Do not assume that SIGPIPE will only kill a subshell in builtins/wait3.0 test. POSIX says that SIGPIPE affects a process and therefore a SIGPIPE caused and received by a subshell environment may or may not affect the parent shell environment. The change assumes that ${SH} is executed in a new process. This must be the case if it contains a slash and everyone appears to do so anyway even though POSIX might permit otherwise. This change makes builtins/wait3.0 work in ksh93. Modified: head/tools/regression/bin/sh/builtins/wait3.0 Modified: head/tools/regression/bin/sh/builtins/wait3.0 ============================================================================== --- head/tools/regression/bin/sh/builtins/wait3.0 Fri Jun 8 21:58:51 2012 (r236770) +++ head/tools/regression/bin/sh/builtins/wait3.0 Fri Jun 8 22:54:25 2012 (r236771) @@ -15,7 +15,7 @@ for i in 1 2 3 4 5 6 7 8 9 10; do done exec 3>fifo1 wait || failure $LINENO -(echo >&3) 2>/dev/null && failure $LINENO +(${SH} -c echo >&3) 2>/dev/null && failure $LINENO wait || failure $LINENO test -z "$failures"