WAIT(1)
NAME
wait − await completion of process
USAGE
wait
DESCRIPTION
Wait pauses until all processes started with an ampersand (&) have completed. 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.
CAUTIONS
Not all the processes of a three- or more-stage pipeline are children of the Shell, sh (1). Thus, not all processes can be awaited. This problem does not apply to csh (1).