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

Re: Proof of concept mainstream plugin manager



On Jan 26, 10:50pm, Daniel Shahaf wrote:
} Subject: Re: Proof of concept mainstream plugin manager
}
} Bart Schaefer wrote on Sat, Jan 23, 2016 at 12:00:55 -0800:
} >         eval "function $func { 
} >           _reload_and_run ${(q)PLUGIN_DIR} ${(qq)opts} $func "'"$@"
} >         }'
} 
} Perhaps change $func to ${(q)func}.

Sebastian has already changed that whole thing to be

functions[$func]="_reload_and_run ${(q)PLUGIN_DIR} $opts $func "'"$@"

which yes, is going to do strange things if $func contains spaces.

On the other hand, the whole plugin would already be broken if $func
contains spaces.  I'd rather not "fix" it in an unpredictable way.



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