zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Re: _rpm odd behavior
@ 2000-05-24  8:29 Sven Wischnowsky
  2000-05-25 16:02 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 2000-05-24  8:29 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> ...
> 
> Is it a new problem that _arguments has trouble dealing with multiple
> single-letter options packed in the same word?

It wasn't. My fault (of course, sigh). It reset the `single' flag in
parse_cadef() although it shouldn't.

IT also adds the `-c'. Any other missing options anywhere?

Bye
 Sven

Index: Completion/Linux/_rpm
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/_rpm,v
retrieving revision 1.8
diff -u -r1.8 _rpm
--- Completion/Linux/_rpm	2000/05/22 14:11:34	1.8
+++ Completion/Linux/_rpm	2000/05/24 08:29:32
@@ -96,7 +96,7 @@
   case "$lstate" in
   query)
     _arguments -s \
-      '*-v[verbose mode]' -q \
+      '*-v[verbose mode]' -q -c \
       '--rcfile:resource file:_files' \
       '--ftpproxy:FTP proxy server:_hosts' \
       '--ftpport:FTP port number:' \
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.22
diff -u -r1.22 computil.c
--- Src/Zle/computil.c	2000/05/22 09:28:35	1.22
+++ Src/Zle/computil.c	2000/05/24 08:29:34
@@ -628,7 +628,6 @@
 
     all = ret = alloc_cadef(oargs, single, match, flags);
     optp = &(ret->opts);
-    single = flags = 0;
     anum = 1;
 
     sargs = args;
@@ -664,7 +663,7 @@
 		set_cadef_opts(ret);
 		ret = ret->snext = alloc_cadef(NULL, single, NULL, flags);
 		optp = &(ret->opts);
-		single = flags = nopts = ndopts = nodopts = 0;
+		nopts = ndopts = nodopts = 0;
 		anum = 1;
 	    }
 	    continue;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-25 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-24  8:29 PATCH: Re: _rpm odd behavior Sven Wischnowsky
2000-05-25 16:02 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).