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

Re: A minor glitch with _arguments



Bart Schaefer wrote:

> ...
> 
> I think this cure is worse than the disease:
> 
> schaefer<509> ../zsh-4.0/configure '--e<TAB>
> schaefer<509> ../zsh-4.0/configure --e 
> _arguments:191: unmatched '
> schaefer<509> ../zsh-4.0/configure '--e

How embarrassing.


Bye
  Sven

Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.51
diff -u -r1.51 computil.c
--- Src/Zle/computil.c	2001/05/02 09:23:07	1.51
+++ Src/Zle/computil.c	2001/05/03 07:08:55
@@ -1253,7 +1253,7 @@
     Caopt ptr, wasopt = NULL, dopt;
     struct castate state;
     char *line, *pe, **argxor = NULL;
-    int cur, doff, argend, arglast;
+    int cur, doff, argend, arglast, ne;
     Patprog endpat = NULL, napat = NULL;
     LinkList sopts = NULL;
 
@@ -1319,7 +1319,10 @@
 
         /* remove quotes */
         line = dupstring(line);
+        ne = noerrs;
+        noerrs = 2;
         parse_subst_string(line);
+        noerrs = ne;
         remnulargs(line);
         untokenize(line);
 

-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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