zsh-workers
 help / color / mirror / code / Atom feed
* zargs parallelization support blows up with |&
@ 2015-07-27  9:36 Dima Kogan
  2015-07-27 16:15 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Dima Kogan @ 2015-07-27  9:36 UTC (permalink / raw)
  To: zsh-workers

Hi. I can use this to invoke a perl script 10 times, 2 processes at a
time:

 zargs -P2 -i -l1 `seq 10` -- perl -e 'sleep 20' {}

This works ok. However, when I do the same thing, but filter stdout and
stderr for some output, then ALL the processes are invoked at the same
time, not just 2 at a time like I asked:

 zargs -P2 -i -l1 `seq 10` -- perl -e 'sleep 20' {} |& grep x

I don't know if this is a bug or an expected consequence of some
internal implementation details, but this is a really nasty failure
mode.

Thanks for looking.
dima


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-27 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-27  9:36 zargs parallelization support blows up with |& Dima Kogan
2015-07-27 16:15 ` Bart Schaefer
2015-07-27 16:37   ` Bart Schaefer
2015-07-27 18:19     ` Dima Kogan

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).