WAIT(1) BSD WAIT(1)
NAME
wait - await completion of process
SYNOPSIS
wait
DESCRIPTION
wait pauses until all processes started with an ampersand (&) have
completed execution. It then reports on abnormal terminations.
Because the wait(2) system call must be executed in the parent process,
the shell itself executes wait without creating a new process.
BUGS
Not all the processes of a three-stage (or longer) pipeline are children
of the shell sh(1). Thus, you may not be able to wait for all processes.
This problem does not apply to csh(1).
SEE ALSO
sh(1), ksh(1)