From 29cfcf008f048582e401b962cf4a3e434dd6b5a8 Mon Sep 17 00:00:00 2001 From: Claus Reinke Date: Mon, 6 Apr 2015 22:37:00 +0200 Subject: [PATCH] simplify system call wrapping for cmd.exe --- autoload/vundle/installer.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 458a2ea..e9e84cd 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -513,14 +513,10 @@ endf " return -- the return value from system() " --------------------------------------------------------------------------- func! vundle#installer#system(cmd) abort - " would this suffice? - " return system('"'.a:cmd.'"') if has("win32") || has("win64") - let slash = &shellslash - set noshellslash - let result = system(shellescape(a:cmd)) - if slash | set shellslash | endif - return result + " see cmd.exe docs (scroll down to remarks): + " https://technet.microsoft.com/de-de/library/cc771320(v=ws.10).aspx + return system('"'.a:cmd.'"') else return system(a:cmd) endif