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

Re: Proof of concept mainstream plugin manager



On 24 January 2016 at 21:45, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 24,  3:59pm, Sebastian Gniazdowski wrote:
> }
> } Where in Zsh source does "autload" report anything about option "-" ?
>
> This is happening because you removed the "eval" and replaced it with
> assignment to functions[$func].  ${(qq)opts} is no longer the correct
> quoting in that formulation, in fact you don't need any quoting of
> $opts at all.   The effect of (qq) is that you are passing "-U -z" as
> a single string, not as two separate arguments.

This came back and now finally resolved. Things work in plugin's
context when auto-loaded function is called. And plugin did local
IFS=$'\n'. So this line in --zplg-reload-and-run:

     builtin autoload $=autoload_opts "$func"

wasn't splitting $autoload_opts on space :)

Best regards,
Sebastian Gniazdowski



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