Date: Wed, 5 Jun 2013 19:54:29 +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: r251432 - head/bin/sh Message-ID: <201306051954.r55JsTBQ020463@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Wed Jun 5 19:54:28 2013 New Revision: 251432 URL: http://svnweb.freebsd.org/changeset/base/251432 Log: sh(1): Document new features in wait builtin. PR: 176916 Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1 ============================================================================== --- head/bin/sh/sh.1 Wed Jun 5 19:46:39 2013 (r251431) +++ head/bin/sh/sh.1 Wed Jun 5 19:54:28 2013 (r251432) @@ -32,7 +32,7 @@ .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" $FreeBSD$ .\" -.Dd May 3, 2013 +.Dd June 5, 2013 .Dt SH 1 .Os .Sh NAME @@ -2642,12 +2642,17 @@ If the option is specified, the .Ar name arguments are treated as function names. -.It Ic wait Op Ar job -Wait for the specified +.It Ic wait Op Ar job ... +Wait for each specified .Ar job to complete and return the exit status of the last process in the +last specified .Ar job . -If the argument is omitted, wait for all jobs to complete +If any +.Ar job +specified is unknown to the shell, it is treated as if it +were a known job that exited with exit status 127. +If no operands are given, wait for all jobs to complete and return an exit status of zero. .El .Ss Commandline Editing
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306051954.r55JsTBQ020463>