From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26896 invoked by alias); 18 Apr 2018 16:33:06 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42681 Received: (qmail 22765 invoked by uid 1010); 18 Apr 2018 16:33:06 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.215.46):SA:0(-1.9/5.0):. Processed in 0.50935 secs); 18 Apr 2018 16:33:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VDrymhqWAK52jq5xdgCQPT90GwqgWVT3lVHcMLhE4h8=; b=u1opYpqCETUXYk2YhHpV/SfrzpwntjiZlGsA5AQu9ZM9qdPSbeLAn/VVRbBwIBNfC3 2HXNfqZptmXXy+cxjtiwANRcThr0cqpvSol07v0GLYAqvoSUG1J8B0F/wWr6ZmGKXDyj jZs/Nna25bOZ/RP3IO0dDuh6li2uitTfrLJxybbDJT9sWNL69389BGKxg56KrVgJM2J9 PmYnTjDl4MrmBblpapCtj7a5wQP3H79kTBvmSLRKNrB3PgcgHJQUT1BBmF+NLbV+B2Ai w4mqrBG9V9TlF9a49pGE4GWWqniy0R0URgvMQU4ueBGBFoTzC/qClEXlPP6gwq2bqDVC 1HrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VDrymhqWAK52jq5xdgCQPT90GwqgWVT3lVHcMLhE4h8=; b=Vmjv1WsmapFVIIoNHdpy90lotSSTt32vrErKDpYuSHVqjcKmX3dNxuFXt71cAUbc4i FnUyPbForRWGa7ed2p+HPhgc6YeV/K1VYwqfRSZeaI/lCS2ZgMi+jqDgsA4ims34qumM bPeEdbkuEJ2yDN3d07or3gK6iJ7/+pfcHC2/RqUYtTctdBO4shFXt+GplyjQfgH/lLls glQM64FS2HTl+5Gp1vNJ2rRdM4q2zkbHAAYfFQrejYDYjtp9SyXtL/SbYAH+oq/rGjfu Vtlor8Jv6izK/S4Jjnq2ZdfeWfcRy2S8oCg0fbcgUky5JYNqGK9GcZuExNx+zKKC1nJt hSkA== X-Gm-Message-State: ALQs6tBes/GXwsJOpPziNxyo1m6wjjTcntvQPchQ3XE6UuKcGY+XREhQ O3hE0bFrMW6dasfxv12DrcnVnhhnHeUSdW47H30K7A== X-Google-Smtp-Source: AIpwx48t5vNBkDIMzi2HOIZW8ryoNey30eBlsR1sc9dmGnl58D89s93/V+aSM2U7TE6yNw/2GgbFa5Wh5vW0fOoQY0g= X-Received: by 10.46.91.21 with SMTP id p21mr2009133ljb.38.1524069181861; Wed, 18 Apr 2018 09:33:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180418062920.GA5840@chaz.gmail.com> References: <180324150945.ZM32251@torch.brasslantern.com> <20180410124545.13fccd5d@camnpupstephen.cam.scsc.local> <20180410145926.64c4f671@camnpupstephen.cam.scsc.local> <180411151025.ZM19332@torch.brasslantern.com> <20180412172342.52df6b10@camnpupstephen.cam.scsc.local> <20180415162326.GA12549@chaz.gmail.com> <20180415185804.GB12549@chaz.gmail.com> <180416223910.ZM32002@torch.brasslantern.com> <20180417101947.5fd347df@camnpupstephen.cam.scsc.local> <20180418062920.GA5840@chaz.gmail.com> From: Bart Schaefer Date: Wed, 18 Apr 2018 09:33:01 -0700 Message-ID: Subject: Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups To: Peter Stephenson , "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Tue, Apr 17, 2018 at 11:29 PM, Stephane Chazelas wrote: > > $ echo ${foo::=bar} | echo $foo > bar > > I suspect if you reuse "time" code, that won't address this > case. The time parse isn't directly re-usable anyway; it's the general technique (have a placeholder at the front that can be updated if the command separator indicates the job will be backgrounded) that's of interest. The case above needs a placeholder at the beginning of each command, whereas the "&" case needs one at the beginning of each pipeline. That does mean that $ echo ${foo::=bar} | echo $foo & echo started needs two placeholders before the first echo.