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

Re: [PATCH] Add _gradle for gradle and gradlew completion.



2012/3/24 Mikael Magnusson <mikachu@xxxxxxxxx>:
> There is no such thing as closures in zsh, you can define it anywhere
> you want using a variable called $build_file and it will use the
> definition of the variable at the call site, not the definition site.
> Ie, the body of a function is completely ignored by zsh until you
> invoke the function (but the syntax has to be correct of course).

Ah, I finally understood. I'm too influenced by other languages,
obviously. I'll change according to your comment.



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