From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13831 invoked by alias); 10 Sep 2011 02:26:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29760 Received: (qmail 13401 invoked from network); 10 Sep 2011 02:26:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110909192543.ZM16774@torch.brasslantern.com> Date: Fri, 09 Sep 2011 19:25:43 -0700 In-reply-to: <87sjo52yck.fsf@gmail.com> Comments: In reply to Stepan Nemec "warn_create_global warnings in current trunk" (Sep 9, 11:35pm) References: <87sjo52yck.fsf@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: warn_create_global warnings in current trunk MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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}) )