From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id aabac1c8 for ; Thu, 14 Nov 2019 07:58:14 +0000 (UTC) Received: (qmail 13890 invoked by alias); 14 Nov 2019 07:58:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24429 Received: (qmail 2265 invoked by uid 1010); 14 Nov 2019 07:58:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25628. spamassassin: 3.4.2. Clear:RC:0(209.85.221.41):SA:0(-2.0/5.0):. Processed in 1.109598 secs); 14 Nov 2019 07:58:05 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=RP8Az2lStUaYePbeiLFLE+95AgJX4ptUG5UgZPT9UZg=; b=ZijcOfJQ3mwxlFTEoAyNDnfqXGsV7AmWs10t5Zgf/Yg5HVrnBNmvsDJ4s8M+zVDvgJ kJeH7HEF8+wxYNyo+dTdtQL9xOMLp+uuRKDYtd+8akX5rDLwAucS0mcmgHpATxQQI6W7 M/X/h5LyuNlvgFZObEJKJz+TkytIQYMS6pCvDokPidagMfp94cRIhfIStQbKIlRZUX6G /MTr0AozJNwLUMwtSqxclhlLZdvWLfRHqh1gbPVyXNHCvmtMy0GMcnt/cAIYx6U27Uxx zE0ZJEoLW4jZs0ifiXH+A4/DEIUEhZY3Jk6fKOHM3jDMBw+tVUcV3a6c2TstkDZRZ6Jw Fhrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=RP8Az2lStUaYePbeiLFLE+95AgJX4ptUG5UgZPT9UZg=; b=tgkk02chI3kP6CVSGpL3/5luTGTEgs5wU8AnnQ0+3hvJpRK1OiW2WwE1uFFT8o1zNy E1DDcADarPALu3cBKsef5hxHZrK1yq9R5sRQKeTr/GKFvfoGtQCxsCCJ9M57WHWPDgWm eaNY+u5DeTKqrJ6/GOrx+TIj2+1OIv+7D7yULMDT8NmowEqBv+GbCRMKt522cFPaKFwh FV8CahnFrbpnliT37dZY6B6M4DkUju00JEvBUHJSZp/l2oPfr+C7VPUbFN6TsPwaVoXy few8VzRNF1ECdHsEX4R9KdQVZzeea4cy7ODo+/x8xNslSz/gTCt11IJsJVkxxMDl3rBo OFrw== X-Gm-Message-State: APjAAAVysFUdpMYo/LXbs90+qUPGbtGYKONBRZdn8C9yOooXs4Ejfv3c bRPKxiDDIqlhQ8C2tdY8Yxk= X-Google-Smtp-Source: APXvYqx3JoKm51FPRdubdAqxNbGicQqScxyRv7FR7PHPjPOipjLhReCLpLRGYA9VSzz4+K1ZBRCCwA== X-Received: by 2002:a5d:574d:: with SMTP id q13mr7347535wrw.263.1573718249080; Wed, 13 Nov 2019 23:57:29 -0800 (PST) Date: Thu, 14 Nov 2019 07:57:27 +0000 From: Stephane Chazelas To: =?utf-8?B?T8SfdXo=?= Cc: zsh-users@zsh.org Subject: Re: substituted command won't inherit stdin in pipeline Message-ID: <20191114075727.kyilhlqwn5fyn4ur@chaz.gmail.com> Mail-Followup-To: =?utf-8?B?T8SfdXo=?= , zsh-users@zsh.org References: <20191113130023.n7lgi2vov44kkjfl@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20171215 2019-11-13 16:30:06 +0300, Oğuz: [...] > > Not exactly what happens in that the expansions in the arguments > > of the commands in the pipeline are performed in the parent, > > from left to right, not in the processes that run the > > individualy pipe components (also note that the right-most pipe > > component is run in the current shell anyway, like in ksh93, > > unlike in bash). Which was meant to be (sorry for the gibberish): > > Not exactly. What happens is that the expansions in the arguments > > of the commands in the pipeline are performed in the parent, > > from left to right, not in the processes that run the > > individualy pipe components (also note that the right-most pipe > > component is run in the current shell anyway, like in ksh93, > > unlike in bash). > Now I'm confused. Is this what standard says, or what zsh does? It's what zsh does. IIRC, POSIX leaves it unspecified. It also leaves unspecified which pipeline component if any may be run in the current shell process. -- Stephane