Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: _setopt broken



Adam Spiers wrote:

> $ setopt <TAB> 
> _all_labels:compadd:39: need non-empty word or line pattern
> 
> Is this another of my `weird options' bugs?

Ouch, parse error for left-anchored patterns.

Bye
 Sven

Index: Src/Zle/complete.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complete.c,v
retrieving revision 1.5
diff -u -r1.5 complete.c
--- Src/Zle/complete.c	2000/04/27 08:21:10	1.5
+++ Src/Zle/complete.c	2000/04/27 09:02:21
@@ -221,7 +221,7 @@
 	    if (err)
 		return pcm_err;
 
-	    if ((both = (*s == '|')))
+	    if ((both = (*s && s[1] == '|')))
 		s++;
 
 	    if (!*s || !*++s) {

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author