diff options
author | jilles <jilles@FreeBSD.org> | 2013-06-05 19:54:28 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-06-05 19:54:28 +0000 |
commit | 7deb35147a0d314af6cbf6c187c29f7312bdf3c4 (patch) | |
tree | fb9e6f5143d27f2b7137e7f656cdfc4798b69c86 /bin/sh/sh.1 | |
parent | d6c9a1576cecccc9331ad48886b220a3822db59b (diff) | |
download | FreeBSD-src-7deb35147a0d314af6cbf6c187c29f7312bdf3c4.zip FreeBSD-src-7deb35147a0d314af6cbf6c187c29f7312bdf3c4.tar.gz |
sh(1): Document new features in wait builtin.
PR: 176916
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 2d99b1b..be315dc 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -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 |