Date: Fri, 8 Jun 2012 22:54:25 +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: r236771 - head/tools/regression/bin/sh/builtins Message-ID: <201206082254.q58MsPoP090382@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206082254.q58MsPoP090382>