wait - wait for jobs or process IDs to complete.
wait [(pid | job_id) ...]
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.
See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.
rush-builtins(7), POSIX Shell Command Language.