zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: warn_create_global warnings in current trunk
Date: Fri, 09 Sep 2011 19:25:43 -0700	[thread overview]
Message-ID: <110909192543.ZM16774@torch.brasslantern.com> (raw)
In-Reply-To: <87sjo52yck.fsf@gmail.com>

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}) )


      parent reply	other threads:[~2011-09-10  2:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-09 21:35 Štěpán Němec
2011-09-09 21:47 ` Frank Terbeck
2011-09-10  9:07   ` Štěpán Němec
2011-09-10  2:25 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=110909192543.ZM16774@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).