From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11322 invoked from network); 3 Jan 1997 13:56:45 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 3 Jan 1997 13:56:45 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA19412; Fri, 3 Jan 1997 09:00:54 -0500 (EST) Resent-Date: Fri, 3 Jan 1997 09:00:54 -0500 (EST) Message-Id: <199701031401.PAA28603@hydra.ifh.de> To: zsh-workers@math.gatech.edu (Z Shell workers mailing list) Subject: Re: more on the lexing bug In-reply-to: "Zefram"'s message of "Sun, 22 Dec 1996 21:03:28 MET." <6914.199612222103@stone.dcs.warwick.ac.uk> Date: Fri, 03 Jan 1997 15:01:53 +0100 From: Peter Stephenson Resent-Message-ID: <"L80Xl3.0.Fl4.L4Hpo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2713 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zefram wrote: > % \ > > ^D > internal: uncompleted line in history > > and the shell exits. What's even worse, % echo executing command unexpectedly... \ > ^D internal: uncompleted line in history executing command unexpectedly... Probably ^D shouldn't behave like EOF within zle unless it's the first character on the first line of input only. After all, it's expected to behave like a continuation of the current line, not a new line. I think the following patch fixes the behaviour. It's so simple I can't help wondering if somebody removed the isfirstln before for some reason? *** Src/zle_main.c.ctrld Fri Jan 3 14:33:35 1997 --- Src/zle_main.c Fri Jan 3 14:33:14 1997 *************** *** 428,434 **** statusline = NULL; bindk = getkeycmd(); ! if (!ll && c == eofchar) { eofsent = 1; break; } --- 428,434 ---- statusline = NULL; bindk = getkeycmd(); ! if (!ll && isfirstln && c == eofchar) { eofsent = 1; break; } -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.