Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

wait for the next process to finish



I just realised that the 'wait' command will either wait for specified
jobs or all jobs and nothing in between. The manual says "If job is not
given then all currently active child processes are waited for.".

So 
	sleep 30 &
	sleep 10 &
	sleep 30 &
	sleep 30 &
	wait
waits for all the sleeps to finish.

How can I wait for just the next job to finish?

			Anthony.



Messages sorted by: Reverse Date, Date, Thread, Author