diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2022-05-03 11:02:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-03 11:02:28 +0100 |
commit | 05cf63e9bdca1ac070df3e7d9c6dfc45e68ac916 (patch) | |
tree | 449168068b07a9bb8a6d12b935a0d67ad7506b0e /runtime | |
parent | 3a974a89331182139e12386275f052a50c247ecb (diff) |
patch 8.2.4860: MS-Windows: always uses current directory for executablesv8.2.4860
Problem: MS-Windows: always uses current directory for executables.
Solution: Check the NoDefaultCurrentDirectoryInExePath environment variable.
(Yasuhiro Matsumoto, closes #10341)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 1b091b16f8..beeb736491 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2016,8 +2016,10 @@ executable({expr}) *executable()* On MS-Windows it only checks if the file exists and is not a directory, not if it's really executable. On MS-Windows an executable in the same directory as Vim is - always found. Since this directory is added to $PATH it - should also work to execute it |win32-PATH|. + normally found. Since this directory is added to $PATH it + should also work to execute it |win32-PATH|. This can be + disabled by setting the $NoDefaultCurrentDirectoryInExePath + environment variable. *NoDefaultCurrentDirectoryInExePath* The result is a Number: 1 exists 0 does not exist |