summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-12-04 11:28:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-12-04 11:54:27 +0800
commitbfe007a1872aa5700cd330eeebe5587b47b0450d (patch)
treeb1e42700cae771cc1c2046c04c643625e5a01b6b /test/functional/vimscript/executable_spec.lua
parentac3e2ca6756598a0c9b342dfb3a8b25d9775ca9f (diff)
vim-patch:9.1.1948: Windows: Vim adds current directory to search path
Problem: Windows: Vim always adds the current directory to search path. This should only happen when using cmd.exe as 'shell'. For example, powershell won't run binaries from the current directory. Solution: Only add current directory to system path, when using cmd.exe as 'shell'. related: vim/vim#10341 related: 083ec6d9a3b7 https://github.com/vim/vim/commit/4d87c9742a544a58c05cb34d4fbaac47e410b369 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
-rw-r--r--test/functional/vimscript/executable_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/vimscript/executable_spec.lua b/test/functional/vimscript/executable_spec.lua
index e5530926c4..a66f9cdb8a 100644
--- a/test/functional/vimscript/executable_spec.lua
+++ b/test/functional/vimscript/executable_spec.lua
@@ -202,9 +202,9 @@ describe('executable() (Windows)', function()
clear({ env = { PATHEXT = '' } })
command('set shell=sh')
for _, ext in ipairs(exts) do
- eq(1, call('executable', 'test_executable_' .. ext .. '.' .. ext))
+ eq(0, call('executable', 'test_executable_' .. ext .. '.' .. ext))
end
- eq(1, call('executable', 'test_executable_zzz.zzz'))
+ eq(0, call('executable', 'test_executable_zzz.zzz'))
end)
it("relative path, Unix-style 'shell' (backslashes)", function()