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

PATCH: pws-25: really small patch



Some variables in completion fucntions were not local

/andrej


--- Completion/Builtins/_cd.old	Mon Jul  5 13:53:06 1999
+++ Completion/Builtins/_cd	Tue Jul  6 18:03:04 1999
@@ -56,7 +56,7 @@
 
   return ret
 elif [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then
-  local tdir
+  local tdir tdir2
   # With cdablevars, we can convert foo/bar/... to ~foo/bar/... if
   # there is no directory foo.  In that case we could also complete
   # variable names, but it hardly seems worth it.
--- Completion/Core/_path_files.old	Mon Jul  5 18:39:55 1999
+++ Completion/Core/_path_files	Tue Jul  6 18:01:12 1999
@@ -33,12 +33,11 @@
 setopt localoptions nullglob rcexpandparam extendedglob
 unsetopt markdirs globsubst shwordsplit nounset
 
+local sopt='-' gopt='' opt
 exppaths=()
 prepaths=('')
 ignore=()
 group=()
-sopt='-'
-gopt=''
 pats=()
 addpfx=()
 addsfx=()



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