From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18125 invoked from network); 27 Mar 2022 17:43:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Mar 2022 17:43:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648403020; b=byv96vjHrNm3LxChpRnZ9O84fQKLEEvjPdafGbSu5qULflP74AqFoYuuYN5zvfKWWfL7p148jK elH1i9j9JMZSP7o4Mpa0JOxSlwfblM/64HYR9WtS0a4JAOkcU3Pu3V/1xnBAHJn0dFqgCx7+71 fq2TPqbNyg34PgioN6z5rH+AkwaXVYyxglVykfP7eeXUcz8hfesY8yMMU365psnvVjPc05XSa4 JG15PmLsDWHp9lu+t/uW9wdlVmVVgmTbqLqCSQPcRh2d99cOS0nYGxJYnbJIXP+blKkW0Pt5Ru cbu2Hc3dTvkOjP8tsV032M6jlp+KrFvTTcCYb0pdKbdX5w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f48.google.com) smtp.remote-ip=209.85.167.48; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1648403020; bh=nvdaZihW+f1beDJDKPAWqSygbMmJzGe09o2y7NnBr5k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=jE4KSQDw+gY+eGHWFyW3eEkd94Agpet77H8b1dqN5pEH51fWd500aBmBbu9ETO0DVz6BV5+KlC GrXjdxbcxoW6v4zbVnMQLUx6KWm20QVQbYSi5HweqkC9zx+886dsppn8RXD6whpRLOU1h+oxM+ 3wBwp/ddV0tP4L4goEb6OMzlp7kPSlTIN5hPP2bx3IO4qwy0vd6atQcHwRY8KySAUgRorODQ6A bGx5Avfy7fIdXJ2LjrpHmpDdlKyROTF5zQbiksXGSW2j/ohe6yx0AZoHAYxiWCyKG7CmuwUR3D rtSh3jmHvGBYZSwu0fXpegvhGHE74SFtfvNMs6f7o/1o5A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=CE//VibRebLtgxT6B1p/4qCB4lWv2vmtAPTqh4f2Fk0=; b=XunRbELk0CP0+sRBYuxalWX+ad l3xkiWPa/KhcLNt+ck7hDVi1e4gSMGYljHbQB3Zc7lr7cBIaiSjnM+iqVxxzgJ+49lBHkf5bXjibf 1QZRiHn4ONjgTvN1/bVCrR/rJyVA3cZW7KrLuv6y61FZCBSBocXcYDgOtu2FJz41QIiEUaE+qJwgZ rLQeZgfGASRgbo2Akw6KXf0xtZdr5uQ0HigIY4yEIdu1ym2GeX++eUv6yZYm+oUE7IKsvKChnovXW KK+y8e+oj9kp1yViFV0j4j6XkS75MENna9/2O/6oKk+gRtclyoYBQFBFk1Eg90GUfTqlBg74TV2VL SYZVAwtg==; Received: from authenticated user by zero.zsh.org with local id 1nYWvU-0003Wl-FS; Sun, 27 Mar 2022 17:43:40 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f48.google.com) smtp.remote-ip=209.85.167.48; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lf1-f48.google.com ([209.85.167.48]:36600) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nYWul-0002oI-N0; Sun, 27 Mar 2022 17:42:56 +0000 Received: by mail-lf1-f48.google.com with SMTP id bt26so21151897lfb.3 for ; Sun, 27 Mar 2022 10:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CE//VibRebLtgxT6B1p/4qCB4lWv2vmtAPTqh4f2Fk0=; b=5b3m+IpmMoAEqXuX8RrOssY2IAH/mPS0r9fqCUBxOseB4rj7LM0sUtSR4DLd1P9/qT GB5LPOu4UV1tGQg/K2l7Ooy10cKqGjEh7CTf+1ZXdyt6C19vDdH9VAjYvH6nFlda6n76 uOJ3yf/j4oOX7kJ2Nk9RtM7D2PncXbYnqJk+7FN+wwiJSViUzYoK+7nCGO3U/W7++1vZ Asln5URpWjnhTI8iYeONIKjk4un0SGmFbX4d4I22kYtxqvcKddyU5U6utOO3uPqWsOXX 00JbWMUcQSC0m+bSMNjMmkySFh4Unkgsl96MCDKmJQ93laW6TaM2Y8yr0ZZc5EerMnnm 2WFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CE//VibRebLtgxT6B1p/4qCB4lWv2vmtAPTqh4f2Fk0=; b=3joEeuicxXNHCmnjJ7eJj2IFYUDaa6/rHty9jSa8yQQAlK4/svR6H/WQJveuM3esh+ XfqaNlVGtgCUKf6J2SVwEgwRUA7TrrbcagM711hIC0VMpwqaDFRw9/8y5K5LtZNeqKou sLzTBpXuJ9rmpg4rlSeeXGSU/bepdhQ9qCITUKvQFLFKC+27s4EGT6YQMvjS7dsGWvOa f8vCujGDxBAs4lUYcDold66UBN4fX8ISRYMyqjk6lhNPoF0aDJ/UEbvS8YjY7yAUllT1 o3jZFHFlI4j0XUjCTPRH7QngpRvUw5+X+DdEK6Lzzkykb1z8pKbnCH2gmeHiqoFPEg4k DINA== X-Gm-Message-State: AOAM533RLeYwLQ5zYMkED7ChnyOQonRAo7L0xaj6JSaJdHpQb69A0VAM 2y7PrwK+IR6wFz430Pn/yodKdfsNLOB0qZ8ekZXmTqKBNeTcSg== X-Google-Smtp-Source: ABdhPJzA2FIBjwPv7jDG3rIKSN7hR9SBMey0uYKFT4+AEpS48VUIBptYitHsPGVXPClhVk1wm0ekLJmF2Rd3rPO0pbY= X-Received: by 2002:a05:6512:1698:b0:448:872b:4425 with SMTP id bu24-20020a056512169800b00448872b4425mr15962396lfb.377.1648402975094; Sun, 27 Mar 2022 10:42:55 -0700 (PDT) MIME-Version: 1.0 References: <1E0E1226-E3E8-40AD-87CD-93A602B1B08B@easesoftware.com> <36966db7bf519a888d7daca39fdd39f1e39b8511.camel@fifi.org> In-Reply-To: From: Bart Schaefer Date: Sun, 27 Mar 2022 10:42:43 -0700 Message-ID: Subject: Re: Parallel processing To: Philippe Troin Cc: Perry Smith , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27629 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sun, Mar 27, 2022 at 10:32 AM Philippe Troin 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.