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

PATCH: _argument, a repeated local, again



~ % 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



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