Hi,

executable() returns a wrong result when an executable is placed at
C:\Windows\System32 and it isn't listed in the PATH environment.

E.g.:

C:\>set PATH=
" Clear the PATH environment.
C:\>cmd
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\>\path-to-gvim\gvim.exe

:echo executable('cmd')
1       " 0 is expected.
:!cmd
" cmd isn't executed as expected.


This issue can be fixed by mattn's following patch:
https://groups.google.com/d/topic/vim_dev/eEBXYLz0NHI/discussion

The patch is already listed in the todo.txt:
> Win32: use different args for SearchPath()? (Yasuhiro Matsumoto, 2009 Jan 30)

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui