zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: zsh heredoc crash
Date: Mon, 12 Sep 2016 23:25:22 +0000	[thread overview]
Message-ID: <20160912232522.GA16602@fujitsu.shahaf.local2> (raw)
In-Reply-To: <160909180250.ZM19582@torch.brasslantern.com>

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.


  parent reply	other threads:[~2016-09-12 23:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHAq8pEm1FHNvoUJUq2t86P-QKtMdT3uScDUGn-dCscJUGvWew@mail.gmail.com>
     [not found] ` <25855010.qczLe9GZ8n@kdudka-nb>
     [not found]   ` <20160909173515.4cb8392e@pwslap01u.europe.root.pri>
2016-09-10  1:02     ` Bart Schaefer
2016-09-11 18:02       ` Peter Stephenson
2016-09-12  1:13         ` Bart Schaefer
2016-09-12 23:25       ` Daniel Shahaf [this message]
2016-09-13  8:29         ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160912232522.GA16602@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).