From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2090 invoked by alias); 26 May 2011 19:42:54 -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: 29380 Received: (qmail 24594 invoked from network); 26 May 2011 19:42:51 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=84D1+zaoSBA4jaUjOm8W6Ms8iSxpXaEVNQ8ibD2PWcY=; b=v0ypTa4ogE4X3GsCs7J/s/RaaTfvzjLapKSTacm7RqpMo4p0XHkKT7EZEyG37uH7Ey G284UybwE8uoHGNMHppr7O+GIVN5Y1/StLu8SkE6vDARpjXhVBbvCHH5ioaIYqHLwbKd nw81TDj0DNrvVbYvgvNZuvt66BoKOJePAebGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=klDP+UYYtimgwcklnnIQhj7gyytksopFs1ePGAPUaVoE7NLw0PV9VsiPs95MjxkgfG 0sn95rhuZNgFG4t4YO/DJ+ZLIzaRH24+YAoeP4LUCdmGsEzUfg/V23FC4wNYOzR/rzgV kjUsIDEf2PPc4X7n5XOvS25kdTNLAPDfceI+Y= MIME-Version: 1.0 In-Reply-To: References: <20110526103606.0d7cd39a@pwslap01u.europe.root.pri> <1306425923-6895-1-git-send-email-mikachu@gmail.com> <20110526171112.2a51be51@pwslap01u.europe.root.pri> Date: Thu, 26 May 2011 21:42:46 +0200 Message-ID: Subject: Re: PATCH: _initctl: only define helper functions once From: Mikael Magnusson To: Bernhard Tittelbach Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 26 May 2011 21:37, Bernhard Tittelbach wrote: > nice trick ! > > :-) Now that I look at it again, could that typeset -g be outside the _initctl() function without the if, so it's just run once (when the whole file is autoloaded)? -- Mikael Magnusson