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

Re: Handling of *ARGZERO options, for Zsh <= 5.3



On 2 Jan 2018, at 23:14, Sebastian Gniazdowski <psprint@xxxxxxxxxxx> wrote:
>Pitty that there's no at least prompt escape code (zsh var would be best) that would return path to binary.

It's slightly irritating because there's no single cross-platform way to do it.
On Linux you can use /proc/self/exe, and some BSDs have a similar mechanism, but
then there's macOS and Solaris and AIX and so on.

I have wanted this feature in the past myself, though, so i would definitely be
in favour of a ZSH_EXECUTABLE_PATH or something. In fact i may look into it now
that you bring it up.

dana



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