From b08dc3ec195feb4ab69c898ab816c104d2aa1aa1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 21 Jul 2019 16:37:07 +0200 Subject: win: jobstart(), system(): $PATHEXT-resolve exe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/functional/fixtures/cmdscript.cmd | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/functional/fixtures/cmdscript.cmd (limited to 'test/functional/fixtures/cmdscript.cmd') diff --git a/test/functional/fixtures/cmdscript.cmd b/test/functional/fixtures/cmdscript.cmd new file mode 100644 index 0000000000..b680d24900 --- /dev/null +++ b/test/functional/fixtures/cmdscript.cmd @@ -0,0 +1,2 @@ +@echo off +echo much success -- cgit