Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Core dump on completion after `for'
- X-seq: zsh-workers 16776
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Core dump on completion after `for'
- Date: Thu, 7 Mar 2002 09:35:59 +0100
- In-reply-to: <7819.1015442376@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <7819.1015442376@xxxxxxx>
Peter Stephenson wrote:
> % ./zsh -f
> % for f in <TAB>zsh: segmentation fault (core dumped) ./zsh -f
>
> ...
>
> so there are two ways to handle it: make these three tokens special
> cases of redirections, or simply ignore the inredir flag for them.
Oh, sorry. I've done the latter.
Bye
Sven
Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.33
diff -u -r1.33 zle_tricky.c
--- Src/Zle/zle_tricky.c 1 Mar 2002 10:42:02 -0000 1.33
+++ Src/Zle/zle_tricky.c 7 Mar 2002 08:36:18 -0000
@@ -1086,7 +1086,7 @@
else
linarr = 0;
}
- if (inredir) {
+ if (inredir && IS_REDIROP(tok)) {
rdstr = rdstrbuf;
if (tokfd >= 0)
sprintf(rdop, "%d%s", tokfd, tokstrings[tok]);
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author