diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-08 12:34:22 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-08 12:34:24 -0400 |
commit | 1892d28c60e97e6e54ebb8bed43e42751178cbcf (patch) | |
tree | a1dae4ac5b77d0863d9ab67923bf3236c070eecd /scripts/genvimvim.lua | |
parent | f25f42bf03b6cdc50dd85ec1dddd693aa71b6f50 (diff) | |
download | rneovim-1892d28c60e97e6e54ebb8bed43e42751178cbcf.tar.gz rneovim-1892d28c60e97e6e54ebb8bed43e42751178cbcf.tar.bz2 rneovim-1892d28c60e97e6e54ebb8bed43e42751178cbcf.zip |
oldtests: win: fix executable() assertions
Windows has "Read and execute" permission via ACL
but nvim and libuv do not support ACL.
Windows does not support the executable bit in chmod-style permissions
but it is safe to assume that if the file exists and is readable,
then it is most likely executable.
This means that win.ini and shell32.dll are "executable"
because they exist, are readable, and are in PATH.
PATHEXT does not affect the executable permission of a file;
it exists to run files on the shell while omitting the file extension.
Assume that PATHEXT is intended for cmd.exe only
because powershell can execute powershell files (ie. *.ps1)
without changing PATHEXT or related cmd.exe environment variable.
In the future, nvim should check the outputs of 'assoc' and 'ftype',
cmd.exe internal commands, or check the registry.
Powershell can be used for ACL if C++/C# API is too difficult to use.
Diffstat (limited to 'scripts/genvimvim.lua')
0 files changed, 0 insertions, 0 deletions