Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Handling of *ARGZERO options, for Zsh <= 5.3
Hello,
I want to filter out $0 value if it contains path to Zsh binary:
% echo ${${0:#$ZSH_ARGZERO}:-${(%):-%N}}
Above works, but for Zsh 5.3 and above. Is it possible to do this with earlier Zshells?
The goal is to have choice to avoid %N, because it cannot be altered, and to solve problems caused by *ARGZERO options. Altering $0 would allow to do `eval "$(<script)"', which can be faster. I'm actually doing a bit more, details are on http://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author