Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh heredoc crash



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.



Messages sorted by: Reverse Date, Date, Thread, Author