#81 - Run commands through the shell on Unix machines

This commit is contained in:
w0rp 2016-10-10 22:56:12 +01:00
parent 2dee212408
commit c37e053944
1 changed files with 3 additions and 0 deletions

View File

@ -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'