From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14902 invoked by alias); 12 Sep 2016 23:26:15 -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: X-Seq: 39301 Received: (qmail 10534 invoked from network); 12 Sep 2016 23:26:15 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.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(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.108603 secs); 12 Sep 2016 23:26:15 -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=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=At/bhIc+CIU0glnc RPQuAmy91wM=; b=tRM0p15ktxHMBukpsngRNst2O/WueeynU5NAfOtddXoOD8bG b5hEDFiTqmWjpmQmLsaZZ+FUog3sXZ+ldeA949UkcFl958RxtA4hzlD6CmEYclYw VqzFPGSHlhmUYWx0monWZ7yVrQkdAXxlmteOifkpEsEp4W/retKjadDzjRA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=At/bhIc+CIU0gln cRPQuAmy91wM=; b=Hx0qeZLFMyb+n3zNiKod40WVZrM4fXnKP7ViGRdJH3pG4a+ sTRrJ/KRGvm537+OPlzpy9HUZiJFcrj9w2ycx7LNS+yrx31aVNRyj3HBmwfptOyk IMZhdI3PSCqJzBZWsrUQJbsG6WzBoaWhFOz7B+d3GxZ+wihgnwxP6vePnNW8= X-Sasl-enc: BtErg9XjghaJ3YdOEY4bW3Z3GYn62x7mBomUNJwlVknu 1473722772 Date: Mon, 12 Sep 2016 23:25:22 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: zsh heredoc crash Message-ID: <20160912232522.GA16602@fujitsu.shahaf.local2> References: <25855010.qczLe9GZ8n@kdudka-nb> <20160909173515.4cb8392e@pwslap01u.europe.root.pri> <160909180250.ZM19582@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <160909180250.ZM19582@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Fri, Sep 09, 2016 at 18:02:50 -0700: > This is because gethere() is looking for a *line* containing only the end > token, even though the top of the call chain is parse_event(OUTPAR). The > desired end token is not passed down through par_sublist(). There seems to be a logic error in gethere(): if (!errflag) { /* Retain any user interrupt error */ errflag = ef | (errflag & ERRFLAG_INT); } The assignment is equivalent to «errflag = ef;» due to the if() condition. It was added in ab09c24a49951b on the interrupt_abort branch.