On Friday 04 May 2012 12:44:32 Greg Wooledge wrote: > On Fri, May 04, 2012 at 12:41:03PM -0400, Mike Frysinger wrote: > > i wish there was a way to use `wait` that didn't block until all the pids > > returned. maybe a dedicated option, or a shopt to enable this, or a new > > command. > > wait takes arguments.
yes, and it'll wait for all the ones i specified before returning > > for example, if i launched 10 jobs in the background, i usually want to > > wait for the first one to exit so i can queue up another one, not wait > > for all of them. > > Do you mean "for *any* one of them", or literally "for the first one"? any. maybe `wait -1` will translate into waitpid(-1, ...). -mike
signature.asc
Description: This is a digitally signed message part.