From owner-freebsd-standards@FreeBSD.ORG Fri Mar 15 17:25:53 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5A96D48C; Fri, 15 Mar 2013 17:25:53 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 36933F33; Fri, 15 Mar 2013 17:25:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2FHPr4V085408; Fri, 15 Mar 2013 17:25:53 GMT (envelope-from jilles@freefall.freebsd.org) Received: (from jilles@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2FHPrNc085407; Fri, 15 Mar 2013 17:25:53 GMT (envelope-from jilles) Date: Fri, 15 Mar 2013 17:25:53 GMT Message-Id: <201303151725.r2FHPrNc085407@freefall.freebsd.org> To: jilles@FreeBSD.org, freebsd-standards@FreeBSD.org, jilles@FreeBSD.org From: jilles@FreeBSD.org Subject: Re: standards/176916: [patch] sh(1): implement multiple arguments to wait builtin X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 17:25:53 -0000 Synopsis: [patch] sh(1): implement multiple arguments to wait builtin Responsible-Changed-From-To: freebsd-standards->jilles Responsible-Changed-By: jilles Responsible-Changed-When: Fri Mar 15 17:13:47 UTC 2013 Responsible-Changed-Why: sh(1) is my area. The wait builtin is indeed required to accept multiple operands and to treat unknown process IDs as known process IDs that exited with status 127. The way you patched getjob seems incorrect as it will still print an error message. Also, I would like to avoid calling setjmp(). I will also implement "--" handling and rejection of unknown options in "wait" first. About working around the lack of these features, invoking "wait" with multiple operands is equivalent to invoking it multiple times with one operand each. Passing unknown process IDs can be avoided iff there are no trap handlers that do not exit. http://www.freebsd.org/cgi/query-pr.cgi?pr=176916