Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Ways of delivering code for execution
Hello,
I know following methods of loading a code for execution:
a) source file
b) autoload file && file
c) eval $(<file)
This is one of impossible questions that I sometimes ask. I'm wondering if there is any other method to do what a,b,c are doing?
If not, then maybe there are significant pros and cons of each method? So that it makes sense to choose between them according to specific situation. I cannot see any. source is just the best method and other have flaws.
I would add method-selection to Zplugin, so that user can load plugin in multiple ways, depending on what plugin does.
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author