win: jobstart(), system(): $PATHEXT-resolve exe

Windows: In order for jobstart(['foo']), system(['foo']) to find
"foo.cmd", we must replace "foo" with "foo.cmd" before sending `argv` to
process_spawn().

Rationale: jobstart([…]), system([…]) "executable" semantics should be
consistent with the VimL executable() function.

fix #9569
related: #10554
This commit is contained in:
Justin M. Keyes
2019-07-21 16:37:07 +02:00
parent 9d0f8224c9
commit b08dc3ec19
4 changed files with 28 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
@echo off
echo much success