aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-08-09 07:45:21 +0800
committerGitHub <noreply@github.com>2024-08-09 07:45:21 +0800
commitb9913191be0b4884d92db794e2eb92641523a415 (patch)
tree1b2733ebccb2339ee5e5df27658a9adf44f9c43e /runtime/doc
parenta89088b7a02b70d15ccd6f17402c36f2ff7b7a81 (diff)
parente01ccda1bebf2d420d725478b480740ff45ad6ad (diff)
downloadrneovim-b9913191be0b4884d92db794e2eb92641523a415.tar.gz
rneovim-b9913191be0b4884d92db794e2eb92641523a415.tar.bz2
rneovim-b9913191be0b4884d92db794e2eb92641523a415.zip
Merge pull request #30015 from zeertzjq/vim-8.2.4860
vim-patch: Check NoDefaultCurrentDirectoryInExePath
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/builtin.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 4bd8975583..6d4003caa9 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -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