From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: Rather bad bug in 4.2.0 zle-line-init
Date: Mon, 22 Mar 2004 19:59:43 +0000 [thread overview]
Message-ID: <20040322195944.3CB9985AF@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Bart Schaefer"'s message of "Sun, 21 Mar 2004 00:49:54 GMT."
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 <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
next reply other threads:[~2004-03-22 19:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 19:59 Peter Stephenson [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-03-21 0:49 Bart Schaefer
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=20040322195944.3CB9985AF@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.dk \
/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).