From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9595 invoked by alias); 12 Jan 2018 18:44:55 -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: 42258 Received: (qmail 26292 invoked by uid 1010); 12 Jan 2018 18:44:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f195.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.220.195):SA:0(-1.9/5.0):. Processed in 3.488446 secs); 12 Jan 2018 18:44:54 -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_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=e14INLdjgl3tA1ft/GRl/rcG5ikIxqbOASdcMNdYuNc=; b=Msl9TzBgBumAKuuHSQegsBdpzK0YHdQTlN7h6Y/B7Evl+1Dx1kziGb9umW78cWKQGu d7sxo3oJzjwljoYP8lupuXwQ/BGaQJDNgS/ztJAmyl8WgQ7XnKa4OTook2unIy5QXg9U 5AEQ785bvls1xBpfq4YcvpY6cFCswLekgwx39ZL5Ur+UkukZ+OL9T1Q31CYrvdko2I8g cbFwvWXXDc5iDYUuAOzjfE/+qCbN+VigAjreASbmmzjCizIpbJEKeUly1zLjFQ6MBP35 F0oQe0rYRi2tbvzngulivax7Fq5WVt+m8Ya6VeIwxc1/vCVy9BjCiRLlusCmHOc4koZp 8ilA== 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=e14INLdjgl3tA1ft/GRl/rcG5ikIxqbOASdcMNdYuNc=; b=Omi4EnpwB9BabG9kmWZyy8vJnp7wvIMHEvRY3XS6OJlMgrxVwyQb7GsPYg/kL0ualy lYEtLO67PYsfK0Ym5Kx79m2uv8pBAMx8fz/hdQudbIumi7y3JRI/CCH2PUBIyM00Rw15 wIzp1fKGRIW1Zg7uoKjpIfUYIavn2SxXNWPKBISmQpfd0W6ZouJPRKfAbjpiKfH5Tz/R V2B16Z/i0cXtbEXgjH/11+Xpk7ROhwPPo6V7uO37KHXgGTeDwE05cO8FDtCT8n/kYJrI SRVpIS4u298YeZG8mMzq13MkULzYHX76kx3PqQ9L+yfU7fWFcHCaVbx3knGSTP9kO1AZ qw6Q== X-Gm-Message-State: AKwxytfRuIL1jXvyKJnkOx8hloksTcW1tbvoNZzM1HU1uGXTwkfmOB0F lhrYDS2J/qhIGqt1c6j3JX2NAE7XEc9KP/oG/ealLg== X-Google-Smtp-Source: ACJfBovdiXY9ueUYpkxqlIgtV5GOfExuHby6+2bJVPBaP65GB/b33B836u/misnDR7XlyrHQsldDhrJrQzGEX7OGZwQ= X-Received: by 10.55.77.209 with SMTP id a200mr35487856qkb.239.1515782687734; Fri, 12 Jan 2018 10:44:47 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20180111152211.18116-1-genml+zsh-workers@thequod.de> References: <20180111152211.18116-1-genml+zsh-workers@thequod.de> From: Bart Schaefer Date: Fri, 12 Jan 2018 10:44:47 -0800 Message-ID: Subject: Re: [PATCH] [RFC] Reset pipestatus in zleread To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Thu, Jan 11, 2018 at 7:22 AM, Daniel Hahler wrote: > > I am looking at $pipestatus in my prompt precmd function, so that with > "false | true" I would still get an indicator that (something in) the > command failed (since $? (status) is 0 in this case). > > This patch resets it in zleread always. In addition to what Eric noted, that's rather the wrong place to do this. Even if it solves the issue for interactive use (which it might not), it doesn't make $pipestatus correct following assignments in scripts. This needs a deeper look (deeper than I have time for right now).