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

Re: how does setopt -m work?



Bart Schaefer wrote:

> Is this really the whole patch?  After applying this, I get
> 
> ../../zsh-3.1.5/Src/options.c: In function `bin_setopt':
> ../../zsh-3.1.5/Src/options.c:527: `p' undeclared (first use this function)
> ../../zsh-3.1.5/Src/options.c:527: (Each undeclared identifier is reported only once
> ../../zsh-3.1.5/Src/options.c:527: for each function it appears in.)
> ../../zsh-3.1.5/Src/options.c:525: warning: `s' might be used uninitialized in this function
> ../../zsh-3.1.5/Src/options.c:525: warning: `t' might be used uninitialized in this function

Seems I sent the patch I made while waiting for the compiler... and
not the one I made after I fixed the above.

Pardon.

Bye
 Sven

--- os/options.c	Thu Mar 11 16:56:36 1999
+++ Src/options.c	Thu Mar 11 16:56:26 1999
@@ -524,7 +524,7 @@
 	    Comp com;
 	    char *s, *t;
 
-	    t = p = dupstring(*args);
+	    t = s = dupstring(*args);
 	    while (*t)
 		if (*t == '_')
 		    chuck(t);

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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