From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8590 invoked from network); 22 Mar 2004 19:58:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Mar 2004 19:58:00 -0000 Received: (qmail 14563 invoked by alias); 22 Mar 2004 19:57:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19671 Received: (qmail 14531 invoked from network); 22 Mar 2004 19:57:52 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Mar 2004 19:57:52 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Mar 2004 19:57:52 -0000 Received: (qmail 13048 invoked from network); 22 Mar 2004 19:57:52 -0000 Received: from cmailg2.svr.pol.co.uk (195.92.195.172) by a.mx.sunsite.dk with SMTP; 22 Mar 2004 19:57:44 -0000 Received: from modem-217.coral-beauty.dialup.pol.co.uk ([62.136.252.217] helo=pwstephenson.fsnet.co.uk) by cmailg2.svr.pol.co.uk with esmtp (Exim 4.14) id 1B5VYN-00085p-3F for zsh-workers@sunsite.dk; Mon, 22 Mar 2004 19:57:43 +0000 Received: by pwstephenson.fsnet.co.uk (Postfix, from userid 501) id 3CB9985AF; Mon, 22 Mar 2004 14:59:44 -0500 (EST) Received: from pwstephenson.fsnet.co.uk (localhost [127.0.0.1]) by pwstephenson.fsnet.co.uk (Postfix) with ESMTP id 289D28543 for ; Mon, 22 Mar 2004 19:59:44 +0000 (GMT) To: zsh-workers@sunsite.dk Subject: Re: Rather bad bug in 4.2.0 zle-line-init In-reply-to: "Bart Schaefer"'s message of "Sun, 21 Mar 2004 00:49:54 GMT." Date: Mon, 22 Mar 2004 19:59:43 +0000 From: Peter Stephenson Message-Id: <20040322195944.3CB9985AF@pwstephenson.fsnet.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.0 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.0 Bart Schaefer wrote: > Make any sort of mistake in zle-line-init, and the editor goes into an > infinite loop. > > E.g. (be sure you can kill this shell from somewhere else): > > zle-line-init() { > setopt localoptions nomatch > echo not[a]pattern(that)matches{anything} > } > zle -N zle-line-init Easy fix. Index: Src/Zle/zle_main.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_main.c,v retrieving revision 1.40 diff -u -r1.40 zle_main.c --- Src/Zle/zle_main.c 8 Mar 2004 11:44:14 -0000 1.40 +++ Src/Zle/zle_main.c 22 Mar 2004 19:46:15 -0000 @@ -835,6 +835,7 @@ args[1] = NULL; execzlefunc(initthingy, args); unrefthingy(initthingy); + errflag = retflag = 0; } zlecore(); -- Peter Stephenson Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk