patch 8.2.4860: MS-Windows: always uses current directory for executables
Problem: MS-Windows: always uses current directory for executables.
Solution: Check the NoDefaultCurrentDirectoryInExePath environment variable.
(Yasuhiro Matsumoto, closes #10341)
This commit is contained in:
committed by
Bram Moolenaar
parent
3a974a8933
commit
05cf63e9bd
@ -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
|
||||
|
||||
Reference in New Issue
Block a user