The difference between "[tt]wait[/tt]" and "[tt]wait $ps_id[/tt]" is that the "[tt]wait[/tt]" will wait for all subprocesses of this process to end, where the "[tt]wait $ps_id[/tt]" is waiting for a specific process to end, the one who's PID was captured in the variable "[tt]ps_id[/tt]".