From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1670 invoked by alias); 19 Sep 2015 21:22:48 -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: 20603 Received: (qmail 10809 invoked from network); 19 Sep 2015 21:22:47 -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=tUHl+cHffSczPo+xC7rDTGaC+EhDlIGPR+pO7QQ/4Vs=; b=AhtIWlWqCwCgc5chcPlq7H/d+t0RGTY8UeryQcDP4Fbd5A1SHbKxvIwoIO294aBBTn GLs9rLTSqndM6E7cRevAAdh/4cNQ1UtVZjYRCr7yLnw2nfzr+ZkCj65NcoM0qnd6UiiA ehUVbx3SJyIb2Q/NK1QkPGlmfAcOXmFqnjsC5lhhFeiwxg+ARLn8Imb+6kYQHday5NQd WjaQInC9fUbHNFvUqZ8mOyzFXpJnnhc+6vczEMw+ztSLUXJv4FDivWsHTKnQIYD2j6z2 BfBqkS+1+KvD3ZNkimrnotMwXiTsKsa2HgvyASM1gTWWUOQVlAWMjTRO9pHVVBgs6fyi KfiQ== X-Gm-Message-State: ALoCoQkVxDfKqmWWeLyfW5G0aTjclPbHEzYslBmKHdCkPBhp1PeftXJ3fOI61AOnD6BmicjGyKz/ X-Received: by 10.202.191.135 with SMTP id p129mr6863174oif.8.1442697766507; Sat, 19 Sep 2015 14:22:46 -0700 (PDT) From: Bart Schaefer Message-Id: <150919142243.ZM23634@torch.brasslantern.com> Date: Sat, 19 Sep 2015 14:22:43 -0700 In-Reply-To: <55FDA5D3.9020304@eastlink.ca> Comments: In reply to Ray Andrews "Re: autoload" (Sep 19, 11:13am) 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> 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 19, 11:13am, Ray Andrews wrote: } Subject: Re: autoload } } I'm thinking about how the creation of a zwc file, and it's subsequent } use could be considered to be part of the same builtin. But you don't say compiler -build something source/* compiler -load something Rather, you build, and then you install, and then you run, and the way all shells are designed, you use $path to bridge the install + run steps. $fpath is the same idea; "autoload" is extra glue to tell the shell that you DON'T want to use the default ($path) search for those names. } autoload --make-zwc /Functions/Functions.zwc /Functions/* } autoload --load-zwc /Functions/Functions.zwc } } ... it wouldn't take long to understand. As I've pointed out, these are exactly the same as zcompile /Functions/Functions.zwc /Functions/* FPATH=/Functions/Functions.zwc autoload +X -w /Functions/Functions.zwc Although the better practice would be to do zcompile /Functions.zwc /Functions/* FPATH=/Functions.zwc autoload +X -w /Functions.zwc if not because of the way fpath is searched, then for the same reason that you shouldn't do tar -c /Functions/Functions.tar /Functions/* Anyway, just make yourself a little wrapper function: loadorcompile() { # rename as suits you local how=$1; shift case $how in (--make-zwc) zcompile "$@";; (--load-zwd) FPATH=$1 autoload +X -w $1;; (*) print -u2 "don't know $how";; esac } } It's very relevant to what degree veterans like yourself use stuff. } I'd provisionally conclude that if you don't use it, then I don't } want it. As I tried to point out, I'm not a very typical user. I would also never use Sebastian's navigation tools, or anything from oh-my-zsh; but that doesn't mean anyone else should avoid them.