diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-04-11 21:43:15 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-04-11 22:10:33 +0900 |
commit | e5f8cc99f524db8db7c7fbe5957609db63869d0e (patch) | |
tree | 480c1872976c45a4e409d6ff0f4d54e8b82014ed /Doc/Zsh | |
parent | 8a9aea907ac4844e2ee7348c4fa6417ae9873991 (diff) | |
download | zsh-e5f8cc99f524db8db7c7fbe5957609db63869d0e.tar.gz zsh-e5f8cc99f524db8db7c7fbe5957609db63869d0e.tar.xz zsh-e5f8cc99f524db8db7c7fbe5957609db63869d0e.zip |
51639: new parameter ZSH_EXEPATH (full path of zsh executable)
The full pathname is obatined by a reliable method on macOS and systems that support procfs. But on other systems (FreeBSD, OpenBSD, ...) it is guessed from argv[0], PWD and PATH.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/params.yo | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 2db4210eb..57d10b8bd 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -1112,6 +1112,10 @@ item(tt(ZSH_EXECUTION_STRING))( If the shell was started with the option tt(-c), this contains the argument passed to the option. Otherwise it is not set. ) +vindex(ZSH_EXEPATH) +item(tt(ZSH_EXEPATH))( +Full pathname of the executable file of the current zsh process. +) vindex(ZSH_NAME) item(tt(ZSH_NAME))( Expands to the basename of the command used to invoke this instance |