From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5745 invoked by alias); 17 Sep 2015 20:40:53 -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: 20576 Received: (qmail 4271 invoked from network); 17 Sep 2015 20:40:52 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=Jfqzid+Orkz+1pjPrG/GKABT1BQ30zfUz6af4IE9ma4=; b=buaJmTEtZSTynORbyE4QsEF6F+kK/hoNQMKjcK7aZ2v6893y6LZw+WnCoQr5lbJ2M9 lg4MoyNPjD3Wsz6kxIElbDqSkd1m8qoDmxItpA4qbezvg8BybAIf4FnaoQnaLwiqynAg 9m51WMTOnj3+MHAGSM//rvz7/7QkVxoCl0Jax83W6ZB48Tyjy4aFlxiIPcUiT1+B44rp 432nt+Ee4mPLXC2VErWAGNqZsvrpHeAtwFhO/uSPgn82LhOEvx/AmO6MOKPqfCdNd/5D bIsEaLVWL9SJyGwJXJnujddk5IpN95ip2WbI5Ro1mwSvYahi5OYStUO5mo1/gnVqxK3T RnEQ== X-Gm-Message-State: ALoCoQlCmfQTeQQjylz0ZpQwIYbq6ESyT8w6jP6bd5VmwKFo+SiJle5JWwuqQWzoMKIswr3mlSs0 X-Received: by 10.182.143.105 with SMTP id sd9mr1109543obb.43.1442522449983; Thu, 17 Sep 2015 13:40:49 -0700 (PDT) From: Bart Schaefer Message-Id: <150917134047.ZM10250@torch.brasslantern.com> Date: Thu, 17 Sep 2015 13:40:47 -0700 In-Reply-To: <55FB12FD.8000504@eastlink.ca> Comments: In reply to Ray Andrews "Re: autoload" (Sep 17, 12:22pm) References: <55FAE223.2080502@eastlink.ca> <150917103419.ZM10067@torch.brasslantern.com> <55FB12FD.8000504@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: autoload MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 17, 12:22pm, Ray Andrews wrote: } Subject: Re: autoload } } On 09/17/2015 10:34 AM, Bart Schaefer wrote: } > } > I think the problem here is that you've put a .zwc file IN a directory } > that is itself listed in $fpath. } } I'm close to certain I haven't, here's all .zwc on my system: The issue isn't (just) what your .zwc files are, it's also what you $fpath contains at the time that your .zshrc or whatever is loaded. E.g. $^fpath/*(.) appears to include /usr/share/zsh/functions/Completion/Base.zwc as one of the matching files. Therefore /usr/share/zsh/functions/Completion must be in the default $fpath, and what I'm saying is that you should not normally put Base.zwc in a directory that is in $fpath. } It isn't possible I've somehow screwed up $fpath? I understand it's } hard coded at startup, Yes, and the problem is that you've put .zwc files into the directories in that hardcoded list, but then tried to use the hardcoded list to (re)build yet another .zwc file. I'm not really sure how further to explain this. The sample code that I provided takes EVERY DIRECTORY that's in (the default) $fpath and packs ALL the files under them into ONE .zwc. You on the other hand seem to have already built a separate .zwc out of EACH directory of the default $fpath. If you're using my example, you don't need to do that - you should throw all those .zwc away and use the single one that my sample builds. Or conversely you should not use that example. } zcompile $zsh_default_functions $^fpath/*(N.:t) << 't' being a } new friend A different enemy, more like. } ... the previous error msgs are gone but: } } $ zsh } /aWorking/Zsh/Boot/ztest:zcompile:13: can't open file: _bootctl The :t discards /usr/share/zsh/... and leaves just a base file name; that might work for autoload but won't for zcompile. You need the full paths, just not the .zwc files.