summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/wait.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/wait.1')
-rw-r--r--usr/src/man/man1/wait.145
1 files changed, 11 insertions, 34 deletions
diff --git a/usr/src/man/man1/wait.1 b/usr/src/man/man1/wait.1
index a5dc58c632..f7c6b75e6e 100644
--- a/usr/src/man/man1/wait.1
+++ b/usr/src/man/man1/wait.1
@@ -1,22 +1,22 @@
'\" te
.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 1992 X/Open Company Limited
-.\" Copyright 1989 AT&T
+.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH wait 1 "13 Mar 2008" "SunOS 5.11" "User Commands"
+.TH WAIT 1 "Mar 13, 2008"
.SH NAME
wait \- await process completion
.SH SYNOPSIS
.LP
.nf
-
+
.fi
.SS "/bin/sh"
@@ -110,62 +110,51 @@ terminated. If one or more job operands are specified, wait waits until all of
them have completed. Each job can be specified as one of the following:
.sp
.ne 2
-.mk
.na
\fB\fInumber\fR\fR
.ad
.RS 12n
-.rt
\fInumber\fR refers to a process ID.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-\fR\fInumber\fR\fR
.ad
.RS 12n
-.rt
\fInumber\fR refers to a process group ID.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%\fR\fInumber\fR\fR
.ad
.RS 12n
-.rt
\fInumber\fR refers to a job number
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%\fR\fIstring\fR\fR
.ad
.RS 12n
-.rt
Refers to a job whose name begins with \fIstring\fR
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%?\fR\fIstring\fR\fR
.ad
.RS 12n
-.rt
Refers to a job whose name contains \fIstring\fR
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%+\fR\fR
.ad
@@ -174,18 +163,15 @@ Refers to a job whose name contains \fIstring\fR
\fB\fB%%\fR\fR
.ad
.RS 12n
-.rt
Refers to the current job
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%-\fR\fR
.ad
.RS 12n
-.rt
Refers to the previous job
.RE
@@ -200,24 +186,20 @@ process that exited with status 127.
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fIpid\fR\fR
.ad
.RS 9n
-.rt
The unsigned decimal integer process \fBID\fR of a command, for which the
utility is to wait for the termination.
.RE
.sp
.ne 2
-.mk
.na
\fB\fIjobid\fR\fR
.ad
.RS 9n
-.rt
A job control job \fBID\fR that identifies a background process group to be
waited for. The job control job \fBID\fR notation is applicable only for
invocations of \fBwait\fR in the current shell execution environment, and only
@@ -292,7 +274,7 @@ then either of the following commands returns the exit status of the second
.in +2
.nf
wait <\fIpid of sleep 31\fR>
-wait %%
+wait %%
.fi
.in -2
.sp
@@ -311,24 +293,20 @@ The following exit values are returned by the \fBwait\fR built-in in
\fBksh93\fR:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 7n
-.rt
\fBwait\fR was invoked with no operands. All processes known by the invoking
process have terminated.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB127\fR\fR
.ad
.RS 7n
-.rt
\fIjob\fR is a process id or process group id that is unknown to the current
shell environment.
.RE
@@ -341,15 +319,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SH SEE ALSO