Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: autoload

On 09/14/2015 01:21 PM, Bart Schaefer wrote:
No; it happens to involve path expansion in the specific example of
appending /* to every element of $fpath, but that's not really what
it means.  The second paragraph of the doc is useful:

      Turn on the RC_EXPAND_PARAM option for the evaluation of SPEC; if
      the `^' is doubled, turn it off.  When this option is set, array
      expansions of the form FOO${XX}BAR, where the parameter XX is set
      to (A B C), are substituted with `FOOABAR FOOBBAR FOOCBAR' instead
      of the default `FOOA B CBAR'.  Note that an empty array will
      therefore cause all arguments to be removed.
Ok ... useful for path expansion but not specific to it. It comes back to me that this RC_EXPAND_PARAM sounded great but had a gotcha attached to it. But if the caret
turns it on for one particular expansion then that's very satisfactory.
} > (zcompile on the other hand DOES load from locations rather than from
} > a path search, so if you use zcompile + autoload -w you get the path
} > stripping.)
} >

One more thing if you would Bart: get me started with combining zcompile with autoload as you mentioned. It sounds like a good idea but I can't find anything on it. I know what zcompile is, but it makes so little difference in loading speed that I've not really bothered with it. But if it works synergistically with autoload that might be interesting to play with.

Messages sorted by: Reverse Date, Date, Thread, Author