mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 13:05:16 +08:00
#540 Fix shell escaping pretty much everywhere
This commit is contained in:
1 parent
32f21751f4
commit
8e4bac54a6
37 files changed
+85
-87
No files matched your search
@@ -5,7 +5,7 @@ let g:ale_asm_gcc_options = get(g:, 'ale_asm_gcc_options', '-Wall')
|
||||
|
||||
function! ale_linters#asm#gcc#GetCommand(buffer) abort
|
||||
return 'gcc -x assembler -fsyntax-only '
|
||||
\ . '-iquote ' . fnameescape(fnamemodify(bufname(a:buffer), ':p:h'))
|
||||
\ . '-iquote ' . shellescape(fnamemodify(bufname(a:buffer), ':p:h'))
|
||||
\ . ' ' . ale#Var(a:buffer, 'asm_gcc_options') . ' -'
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in new issue
Block a user