From 4472ffa078944dd00860c74564eb29ffe1bf9ba2 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 7 Feb 2014 07:22:38 +0900 Subject: [PATCH] Fix shellesc() --- autoload/vundle/installer.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index c022386..d99791f 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -252,9 +252,7 @@ endf func! vundle#installer#shellesc(cmd) abort if ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh'))) - if &shellxquote != '(' " workaround for patch #445 - return '"'.a:cmd.'"' " enclose in quotes so && joined cmds work - endif + return '"' . substitute(a:cmd, '"', '\\"', 'g') . '"' endif return shellescape(a:cmd) endf