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

Re: Parallel processing



On Sun, Mar 27, 2022 at 10:32 AM Philippe Troin <phil@xxxxxxxx> wrote:
>
> I was referring to the fact that zargs misses the exit status of
> subcommands:

Yes, I addressed that when I said
>> However, that "wait" returns the exit status of only one of those jobs.

> In the first invocation, zargs misses that one of the subshells returns
> non-zero exit status.

That's also mentioned in the comments in the source file:
# With the --max-procs option, zargs may not correctly capture the exit
# status of the backgrounded jobs, because of limitations of the "wait"
# builtin.  If the zsh/parameter module is not available, the status is
# NEVER correctly returned, otherwise the status of the longest-running
# job in each batch is captured.

However, see patch submitted a few minutes ago to zsh-workers.




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