zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _argument, a repeated local, again
@ 1999-11-22 17:59 Alexandre Duret-Lutz
  1999-11-22 18:04 ` Bart Schaefer
  1999-11-22 19:35 ` Alexandre Duret-Lutz
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Duret-Lutz @ 1999-11-22 17:59 UTC (permalink / raw)
  To: zsh-workers


~ % rlogin foo<TAB>
~ % rlogin fooprefix=ant
suffix=''


That was a local left in a while loop.


--- _arguments.old	Mon Nov 22 17:49:39 1999
+++ _arguments	Mon Nov 22 17:52:13 1999
@@ -166,7 +166,7 @@
 if comparguments -i "$autod" "$@"; then
   local nm="$compstate[nmatches]" action noargs aret expl local
   local next direct odirect equal single match matched ws tmp1 tmp2
-  local opts subc
+  local opts subc prefix suffix
 
   if comparguments -D descr action; then
     comparguments -C subc
@@ -288,8 +288,6 @@
       fi
       if [[ -n "$opts" && -z "$aret$matched" &&
             nm -eq compstate[nmatches] ]]; then
-
-        local prefix suffix
 
         prefix="${PREFIX#*\=}"
         suffix="$SUFFIX"


-- 
Alexandre Duret-Lutz


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

end of thread, other threads:[~1999-11-22 19:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22 17:59 PATCH: _argument, a repeated local, again Alexandre Duret-Lutz
1999-11-22 18:04 ` Bart Schaefer
1999-11-22 19:35 ` Alexandre Duret-Lutz
1999-11-22 19:24   ` Bart Schaefer
1999-11-22 19:34     ` 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).