mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.1769: executable() ignoring symlinks on Windows
Problem: executable() ignoring symlinks on Windows Solution: resolve reparse points closes: #12562 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: AmberArr <me@frost.moe>
This commit is contained in:
committed by
Christian Brabandt
parent
9f29621415
commit
f5d0f54790
@@ -1818,6 +1818,10 @@ func Test_Executable()
|
||||
let [pathext, $PATHEXT] = [$PATHEXT, '.com;.exe;.bat;.cmd']
|
||||
call assert_equal(notepadbat, exepath('notepad'))
|
||||
let $PATHEXT = pathext
|
||||
" check for symbolic link
|
||||
execute 'silent !mklink np.bat "' .. notepadbat .. '"'
|
||||
call assert_equal(1, executable('./np.bat'))
|
||||
call assert_equal(1, executable('./np'))
|
||||
bwipe
|
||||
eval 'Xnotedir'->delete('rf')
|
||||
elseif has('unix')
|
||||
|
Reference in New Issue
Block a user