Re: Parallelism a la make -j n / GNU parallel

2012-05-05 Thread Andreas Schwab
Mike Frysinger vap...@gentoo.org writes: not on my system it doesn't. maybe a difference in bash versions. as soon as one process quits, the `wait` is interrupted, a new one is forked, and the parent goes back to sleep until another child exits. if i don't `set -m`, then i see what

Re: Parallelism a la make -j n / GNU parallel

2012-05-05 Thread John Kearney
Am 05.05.2012 06:35, schrieb Mike Frysinger: On Friday 04 May 2012 15:25:25 John Kearney wrote: Am 04.05.2012 21:13, schrieb Mike Frysinger: On Friday 04 May 2012 15:02:27 John Kearney wrote: Am 04.05.2012 20:53, schrieb Mike Frysinger: On Friday 04 May 2012 13:46:32 Andreas Schwab wrote:

Re: Severe Bash Bug with Arrays

2012-05-05 Thread Maarten Billemont
This mail has gone slightly off-topic. Hit mark as read if you don't care for that sort of thing. On 27 Apr 2012, at 21:02, Linda Walsh wrote: Greg Wooledge wrote: NEVER use eval plus a brace expansion to generate a list. That's just freakin' evil. And unsafe: But I _like_ evil

Re: Severe Bash Bug with Arrays

2012-05-05 Thread Linda Walsh
Maarten Billemont wrote: This mail has gone slightly off-topic. Hit mark as read if you don't care for that sort of thing. I don't care if you like evil in your sexual play or in your vendettas. When you write code, evil is nothing worth liking. In programming, evil is defined as

Re: Parallelism a la make -j n / GNU parallel

2012-05-05 Thread Ben Pfaff
Colin McEwan colin.mce...@gmail.com writes: I frequently find myself these days writing shell scripts, to run on multi-core machines, which could easily exploit lots of parallelism (eg. a batch of a hundred independent simulations). The basic parallelism construct of '' for async execution

Re: Parallelism a la make -j n / GNU parallel

2012-05-05 Thread John Kearney
Am 05.05.2012 06:28, schrieb Mike Frysinger: On Friday 04 May 2012 16:17:02 Chet Ramey wrote: On 5/4/12 2:53 PM, Mike Frysinger wrote: it might be a little racy (wrt checking cnt = 10 and then doing a wait), but this is good enough for some things. it does lose visibility into which pids are