From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1365 invoked from network); 24 Apr 2005 00:23:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Apr 2005 00:23:53 -0000 Received: (qmail 35617 invoked from network); 24 Apr 2005 00:23:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Apr 2005 00:23:47 -0000 Received: (qmail 24066 invoked by alias); 24 Apr 2005 00:23:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21169 Received: (qmail 24047 invoked from network); 24 Apr 2005 00:23:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Apr 2005 00:23:40 -0000 Received: (qmail 35266 invoked from network); 24 Apr 2005 00:23:40 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 24 Apr 2005 00:23:36 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IFF00GRTD38BR83@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 23 Apr 2005 19:23:33 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j3O0NVVk020412 for ; Sat, 23 Apr 2005 17:23:31 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j3O0NVl3020411 for zsh-workers@sunsite.dk; Sat, 23 Apr 2005 17:23:31 -0700 Date: Sun, 24 Apr 2005 00:23:30 +0000 From: Bart Schaefer Subject: Re: PATCH: Cleaner envrionment after some completions In-reply-to: <20050423201944.GA23939@portfolio16.de> To: zsh-workers@sunsite.dk Message-id: <1050424002330.ZM20410@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050423201944.GA23939@portfolio16.de> Comments: In reply to Tobias Gruetzmacher "PATCH: Cleaner envrionment after some completions" (Apr 23, 10:19pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Apr 23, 10:19pm, Tobias Gruetzmacher wrote: } } +++ mod/Completion/Unix/Command/_subversion } } if (( ! $+_svn_cmds )); then } - typeset -gA _svn_cmds } + typeset -A _svn_cmds This one is wrong. The "g" in there makes _svn_cmds a global; if it's removed to make it a a local, then 'if (( ! $+_svn_cmds ))' will always be true, and _call_program will always be run. Perhaps you meant 'typeset -gHA _svn_cmds' ?