Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH 4.1.1 Coredump bug
- X-seq: zsh-workers 19424
- From: Marius van Wyk <marius@xxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: ZSH 4.1.1 Coredump bug
- Date: Mon, 16 Feb 2004 12:21:00 +0200
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <22466.1076849305@athlon>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <C1A391A0-5DF8-11D8-AEA2-000A958FBAFE@xxxxxxx> <22466.1076849305@athlon>
On 15 Feb 2004, at 14:48, Oliver Kiddle wrote:
Marius van Wyk wrote:
[marius@boa-constructor /home/marius]$ zsh -f
boa-constructor% compctl -f -x 'p[2]' -s "`/bin/ls /bin`" --open
Segmentation fault (core dumped)
This should fix it.
I updated the file, then did a 'make clean; make'
Then I ran zsh again, and entered:
~> compctl -f -x 'p[2]' -s "`/bin/ls /bin`" --open
Same thing. SIGSEGV.
Strange.
Me.
Index: Src/Zle/compctl.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compctl.c,v
retrieving revision 1.16
diff -u -r1.16 compctl.c
--- Src/Zle/compctl.c 13 Nov 2003 14:34:38 -0000 1.16
+++ Src/Zle/compctl.c 15 Feb 2004 12:29:35 -0000
@@ -857,7 +857,7 @@
}
break;
default:
- if (!first && (**argv == '-' || **argv == '+'))
+ if (!first && (**argv == '-' || **argv == '+') && !argv[0][1])
(*argv)--, argv--, ready = 1;
else {
zwarnnam(name, "bad option: -%c", NULL, **argv);
--
Director,
Tangible Business Software
Messages sorted by:
Reverse Date,
Date,
Thread,
Author