summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-10 22:56:12 +0100
committerw0rp <devw0rp@gmail.com>2016-10-10 22:56:12 +0100
commitc37e05394434a2f65deabe29b597a844b84c4a2c (patch)
treedfd1e8b3774ab17f938bed63cdd9ed4a77e88804 /autoload
parent2dee2124085ca3c88bcb550d2d4542224d5886c6 (diff)
downloadale-c37e05394434a2f65deabe29b597a844b84c4a2c.zip
#81 - Run commands through the shell on Unix machines
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index b9a9ff9d..c56e1c3c 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -199,6 +199,9 @@ function! ale#engine#Invoke(buffer, linter) abort
" .cmd, .bat, .exe, etc.
let l:command = 'cmd /c ' . l:command
else
+ " Execute the command with the shell, to fix escaping issues.
+ let l:command = split(&shell) + split(&shellcmdflag) + [l:command]
+
" On Unix machines, we can send the Vim buffer directly.
" This is faster than reading the lines ourselves.
let job_options.in_io = 'buffer'