zsh-workers
 help / color / mirror / code / Atom feed
* bug: EOF at a continuation prompt
@ 1996-11-30 18:11 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-11-30 18:11 UTC (permalink / raw)
  To: Z Shell workers mailing list

% (
subsh> ^D
zsh: parse error near `\n'
> 

That bare ">" prompt shouldn't appear.  We should go back to the ZLE
prompt.  The culprit seems to be in input.c:

	/*
	 * Otherwise, see if we have reached the end of input
	 * (due to an error, or to reading from a single string).
	 */
	if (strin || errflag) {
	    lexstop = 1;
	    return lastc = ' ';
	}
	/* As a last resort, get some more input */
	if (inputline())
	    return lastc = ' ';

It looks like the first if() here should be used, but errflag is zero.
Consequently inputline() gets called.

And look what happens if you type at that extra prompt:

> ls
zsh: command not found: s

Huh?

-zefram


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-11-30 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-30 18:11 bug: EOF at a continuation prompt Zefram

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).