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

Re: Can this snippet be further improved?



On Fri, Jul 28, 2023 at 3:09 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> ZERO is a $0-like variable however provided by the plugin manager.
>
> I think that the returning of origin source file is a plus – one can
> throw in the 0="…" snippet in any kind of file, hash-bang script,
> sourced script and autoload function and always get expected result.

Seems like you'd do less potential damage to other things that might
examine $0 if you overloaded $ZSH_SCRIPT instead, here.




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