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

Re: warn_create_global warnings in current trunk



On Sep 9, 11:35pm, Stepan Nemec wrote:
}
} compaudit:118: array parameter _i_ulwdirs

That reveals quite a different bug.  _i_ulwdirs is never referenced,
so the part of the Debian-specific code has been dead for a while.

Index: Completion/compaudit
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/compaudit,v
retrieving revision 1.10
diff -u -r1.10 compaudit
--- Completion/compaudit        20 Aug 2011 18:34:00 -0000      1.10
+++ Completion/compaudit        10 Sep 2011 02:24:39 -0000
@@ -102,7 +102,7 @@
 # that this has not happened, and pick the best group.
 
 if (( $#_i_wdirs )); then
-  local GROUP GROUPMEM _i_pw _i_gid _i_ulwdirs
+  local GROUP GROUPMEM _i_pw _i_gid
   if ((UID == EUID )); then
     getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
   else
@@ -117,8 +117,9 @@
 
 if [[ -f /etc/debian_version ]]
 then
-_i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
-_i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdir}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
+  local _i_ulwdirs
+  _i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
+  _i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdirs}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
 fi
 
 _i_wdirs=( $_i_wdirs ${^fpath}.zwc^([^_]*|*~)(N-^u0u${EUID}) )



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