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

Re: Can $_ substitute $0 when nofunctionargzero



Hello,
I read through discussion on ZSH_SCRIPT and ZSH_ARGZERO. Could there
be one more parameter added? Basically, it's hard to make a software
package without knowing where sourced file is located. A good example
is zsh-syntax-highlighting. It needs functionargzero to be able to do
source $0:h/highlighters/main/main-highlighter.zsh and other sources.
An alternative is a variable, which is $ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR
in this case.

This is for emulate sh and ksh, where functionargzero is unset. Would
we expect that some day software packages for shells with ksh
emulation will be created? It would be interesting I think.

Best regards,
Sebastian Gniazdowski



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