From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16482 invoked by alias); 9 Nov 2013 03:35:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18129 Received: (qmail 15252 invoked from network); 9 Nov 2013 03:35:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bkKyLgCPbmiUL97jfc0l9yk3m1Or3hz0SiYTBEIXaac=; b=MoGwpGoIlLh0XPxMrhyENExehjtfd2r9p+/oTl9/ctNZRVWXZUozV3ERDe4G7JqnkA M5q8s7vgEBfZwLOGDD8ZnrqkjtJPXGr7BbQGOnZaHte2AQYNkDO65+TGe6UfIBIGDzR3 oXcbQxUinj/BEQX9PSPNkvKwAhYD12upSj8OM7s+hQmh243tMBdOZyXDJK/vbnvB7f3u BDJMGcHeqNFkZDPkWHVZk2IqwBVsxMJnP+7+l8XaoPRIF9P7/1woXCTTngsk3xj2a8aS 9wxpwj4Uy9DPeiAVnWt2FIzJ6AFqyVvk6dJBFzLLLoe/An5CEbuyM6PiaeRQW6g6zKav /34g== X-Received: by 10.42.100.209 with SMTP id b17mr6786408ico.42.1383968139666; Fri, 08 Nov 2013 19:35:39 -0800 (PST) Message-ID: <527DAD8A.30309@gmail.com> Date: Fri, 08 Nov 2013 20:35:38 -0700 From: John User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: zsh 5.0.2-test-1 is available References: <20131106202321.4a48c77b@pws-pc.ntlworld.com> <20131107153315.GW3544@sym.noone.org> <20131107160551.7aa195dc@pwslap01u.europe.root.pri> <20131107191806.GA85153@redoubt.spodhuis.org> <131107173627.ZM24325@torch.brasslantern.com> <20131108071627.GA6216@redoubt.spodhuis.org> <20131108093822.1534aa88@pwslap01u.europe.root.pri> <131108063903.ZM25660@torch.brasslantern.com> <20131108161109.6e373049@pwslap01u.europe.root.pri> <131108181143.ZM26121@torch.brasslantern.com> In-Reply-To: <131108181143.ZM26121@torch.brasslantern.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/8/13, 7:11 PM, Bart Schaefer wrote: > On Nov 8, 4:11pm, Peter Stephenson wrote: > } > } It seems to me it's equally not an error to mark zstat as a builtin from > } zsh/stat if it's already loaded as a builtin from zsh/stat. It would > } only be an error if there's a conflict. > } > } That's how "autoload" works, after all: it can't check for a conflict > } (without major faff) but it does check if a function's already loaded. > > > I'm confused; these statements seem contradictory, so I must be missing > something. If we can't check for a conflict, how can we suppress the > error message? I.e., how do we know that zstat is already loaded as a > builtin from the same module we're now loading? Could you do something as simple as remember a checksum (or md5sum) and maybe the filename when it's loaded? It seems like that would catch everything with a low risk of false matches. John