mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
vim-patch:0cc5dce: runtime(doc): clarify directory of Vim's executable vs CWD
According to :h win32-PATH, "the same directory as Vim" means the same
directory as the Vim executable, not Vim's current directory. In patch
8.2.4860 these two concepts were mixed up.
closes: vim/vim#15451
0cc5dce578
This commit is contained in:
parent
336ab2682e
commit
e01ccda1be
13
runtime/doc/builtin.txt
generated
13
runtime/doc/builtin.txt
generated
@ -1256,8 +1256,10 @@ executable({expr}) *executable()*
|
||||
This function checks if an executable with the name {expr}
|
||||
exists. {expr} must be the name of the program without any
|
||||
arguments.
|
||||
|
||||
executable() uses the value of $PATH and/or the normal
|
||||
searchpath for programs. *PATHEXT*
|
||||
searchpath for programs.
|
||||
*PATHEXT*
|
||||
On MS-Windows the ".exe", ".bat", etc. can optionally be
|
||||
included. Then the extensions in $PATHEXT are tried. Thus if
|
||||
"foo.exe" does not exist, "foo.exe.bat" can be found. If
|
||||
@ -1267,8 +1269,13 @@ executable({expr}) *executable()*
|
||||
then the name is also tried without adding an extension.
|
||||
On MS-Windows it only checks if the file exists and is not a
|
||||
directory, not if it's really executable.
|
||||
On Windows an executable in the same directory as Vim is
|
||||
always found (it is added to $PATH at |startup|).
|
||||
On MS-Windows an executable in the same directory as the Vim
|
||||
executable is always found (it's added to $PATH at |startup|).
|
||||
*NoDefaultCurrentDirectoryInExePath*
|
||||
On MS-Windows an executable in Vim's current working directory
|
||||
is also normally found, but this can be disabled by setting
|
||||
the $NoDefaultCurrentDirectoryInExePath environment variable.
|
||||
|
||||
The result is a Number:
|
||||
1 exists
|
||||
0 does not exist
|
||||
|
13
runtime/lua/vim/_meta/vimfn.lua
generated
13
runtime/lua/vim/_meta/vimfn.lua
generated
@ -1586,8 +1586,10 @@ function vim.fn.eventhandler() end
|
||||
--- This function checks if an executable with the name {expr}
|
||||
--- exists. {expr} must be the name of the program without any
|
||||
--- arguments.
|
||||
---
|
||||
--- executable() uses the value of $PATH and/or the normal
|
||||
--- searchpath for programs. *PATHEXT*
|
||||
--- searchpath for programs.
|
||||
--- *PATHEXT*
|
||||
--- On MS-Windows the ".exe", ".bat", etc. can optionally be
|
||||
--- included. Then the extensions in $PATHEXT are tried. Thus if
|
||||
--- "foo.exe" does not exist, "foo.exe.bat" can be found. If
|
||||
@ -1597,8 +1599,13 @@ function vim.fn.eventhandler() end
|
||||
--- then the name is also tried without adding an extension.
|
||||
--- On MS-Windows it only checks if the file exists and is not a
|
||||
--- directory, not if it's really executable.
|
||||
--- On Windows an executable in the same directory as Vim is
|
||||
--- always found (it is added to $PATH at |startup|).
|
||||
--- On MS-Windows an executable in the same directory as the Vim
|
||||
--- executable is always found (it's added to $PATH at |startup|).
|
||||
--- *NoDefaultCurrentDirectoryInExePath*
|
||||
--- On MS-Windows an executable in Vim's current working directory
|
||||
--- is also normally found, but this can be disabled by setting
|
||||
--- the $NoDefaultCurrentDirectoryInExePath environment variable.
|
||||
---
|
||||
--- The result is a Number:
|
||||
--- 1 exists
|
||||
--- 0 does not exist
|
||||
|
@ -2059,8 +2059,10 @@ M.funcs = {
|
||||
This function checks if an executable with the name {expr}
|
||||
exists. {expr} must be the name of the program without any
|
||||
arguments.
|
||||
|
||||
executable() uses the value of $PATH and/or the normal
|
||||
searchpath for programs. *PATHEXT*
|
||||
searchpath for programs.
|
||||
*PATHEXT*
|
||||
On MS-Windows the ".exe", ".bat", etc. can optionally be
|
||||
included. Then the extensions in $PATHEXT are tried. Thus if
|
||||
"foo.exe" does not exist, "foo.exe.bat" can be found. If
|
||||
@ -2070,8 +2072,13 @@ M.funcs = {
|
||||
then the name is also tried without adding an extension.
|
||||
On MS-Windows it only checks if the file exists and is not a
|
||||
directory, not if it's really executable.
|
||||
On Windows an executable in the same directory as Vim is
|
||||
always found (it is added to $PATH at |startup|).
|
||||
On MS-Windows an executable in the same directory as the Vim
|
||||
executable is always found (it's added to $PATH at |startup|).
|
||||
*NoDefaultCurrentDirectoryInExePath*
|
||||
On MS-Windows an executable in Vim's current working directory
|
||||
is also normally found, but this can be disabled by setting
|
||||
the $NoDefaultCurrentDirectoryInExePath environment variable.
|
||||
|
||||
The result is a Number:
|
||||
1 exists
|
||||
0 does not exist
|
||||
|
Loading…
Reference in New Issue
Block a user