WAIT(1)

NAME

wait - wait for jobs or process IDs to complete.

SYNOPSIS

wait [(pid | job_id) ...]

DESCRIPTION

wait is a POSIX regular builtin provided by Rush. It waits for each process ID or shell job specification and returns the final target's status. Without operands, it waits for all known background processes.

This page summarizes the builtin in Rush documentation. POSIX is the normative reference for detailed portable behavior.

EXIT STATUS

See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.

SEE ALSO

rush-builtins(7), POSIX Shell Command Language.