From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8184 invoked by alias); 9 Nov 2013 05:21:33 -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: 18130 Received: (qmail 4884 invoked from network); 9 Nov 2013 05:21:17 -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 autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:from:date:to:message-id; bh=/7Q3fEAdswR48E/40NWVJ2tTR+KtVMBw+H0jRM0OanY=; b=Q9HzWdWmQqx4AFizwHMt5JToytF33y5G77lK06yQL/pe+b6fkpS89OIg06Vbk3Yik0 0EDmb7u7m/lIR1CclJk+9re48ltjRcxWw9I94ZtK1te4Q9Pkjo1jMG9Ed4McyK1LRW4J n+DdLTQjcNqWiSKkwOL7rn1rFA7BVGxP6L+ODWg85eLFkjP9m6EdjqTgjDM6h8OsPtMc k0cQRX7AireienQQnnDBSBSHeXsEKGfukQDgDLW5VSM3Hi2NIYJMqwkSaauJn5Gm8kyH wq/h1sKwKTyMS4zJBFB3F8yEXscDE75+cZM78Pi40J48xJYTD+7BHktYfXradSNrd+ZY JfxQ== X-Received: by 10.236.70.72 with SMTP id o48mr8857389yhd.63.1383974472664; Fri, 08 Nov 2013 21:21:12 -0800 (PST) User-Agent: Kaiten Mail In-Reply-To: <527DAD8A.30309@gmail.com> 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> <527DAD8A.30309@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: zsh 5.0.2-test-1 is available From: Shawn Wilson Date: Sat, 09 Nov 2013 00:20:55 -0500 To: John ,zsh-users@zsh.org Message-ID: <2b0bdcdd-c292-4fb4-9bc5-8a55dc9c3ef0@email.android.com> John wrote: >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. > I think that's overkill. I think giving a return status of 2 or 255 might be sufficient.