From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19392 invoked by alias); 20 Sep 2015 23:51:43 -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: 20611 Received: (qmail 8228 invoked from network); 20 Sep 2015 23:51:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=s29CTmHa7U/x68CX52ea5Q==:117 a=s29CTmHa7U/x68CX52ea5Q==:17 a=N659UExz7-8A:10 a=ydEM5aDn85cvKP1LAIsA:9 a=pILNOxqGKmIA:10 Message-id: <55FF3F7E.4060906@eastlink.ca> Date: Sun, 20 Sep 2015 16:21:34 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: autoload References: <55FAE223.2080502@eastlink.ca> <150917103419.ZM10067@torch.brasslantern.com> <150918171441.ZM27212@torch.brasslantern.com> <55FD7982.9030505@eastlink.ca> <150919092922.ZM28214@torch.brasslantern.com> <55FDA5D3.9020304@eastlink.ca> <150919142243.ZM23634@torch.brasslantern.com> <55FE04AD.1070304@eastlink.ca> <150919224120.ZM4736@torch.brasslantern.com> In-reply-to: <150919224120.ZM4736@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/19/2015 10:41 PM, Bart Schaefer wrote: > } -"zcompile ... (N-.:t)" ... or it barfs if there's a directory on the > } same path. Fussy fussy. > > You *really* don't want that :t in there. Yup. It turns out that it was the regular versions of the functions that were being found. > This is for all practical purposes impossible to do automatically. Sure, I can't argue, you know how it works. My dream of simplicity may indeed be impossible. But you know what's in my head--something that's the equivalent of 'just sourcing' your functions, but doing it from precompiled code, and not pre-loading anything at all, but doing it only when the function is actually called. Nuts, it's so elegant in theory. I'm sorta in love with the idea but implementation becomes a can of worms. > } and not try to digest existing .zwc's, > } and not worry about directories. > > This is a philosophical issue along the same lines as CSH_NULL_GLOB. > If I name a bunch of things and some of them are wrong, should the > shell complain about them or not, and either way, should it skip > them and continue working on the ones that are correct? Which is > more likely to produce the final result that the user expected? Indeed, and the right answer is not obvious. Hand holding tends to end up creating more problems that it solves. I'd suppose that if there are built in exceptions to the plain reading of a command it must be exceptions that could never be desired ever, like, perhaps, including a .zwc inside it's own replacement. Or not. I always hated Microsoft for making 80% of things easier and the remaining 20% impossible. If it has to be tough, then it has to be tough. You know Bart, with all the time you've spent on this, you could have written that HOWTO ;-) Seriously, it requires something broader than just reading the manual. >