More shell escaping bugs.
This commit is contained in:
parent
a1e1108c8e
commit
f4ccd312ee
@ -161,7 +161,7 @@ endfunction
|
||||
|
||||
" A less noisy shellescape(expand())
|
||||
function! syntastic#util#shexpand(string)
|
||||
return syntastic#util#shescape(expand(a:string))
|
||||
return syntastic#util#shescape(escape(expand(a:string), '|'))
|
||||
endfunction
|
||||
|
||||
function! syntastic#util#debug(msg)
|
||||
|
@ -112,10 +112,10 @@ function s:GetOcamlcMakeprg()
|
||||
if g:syntastic_ocaml_use_janestreet_core
|
||||
let build_cmd = "ocamlc -I "
|
||||
let build_cmd .= expand(g:syntastic_ocaml_janestreet_core_dir)
|
||||
let build_cmd .= " -c " . expand('%')
|
||||
let build_cmd .= " -c " . syntastic#util#shexpand('%')
|
||||
return build_cmd
|
||||
else
|
||||
return "ocamlc -c " . expand('%')
|
||||
return "ocamlc -c " . syntastic#util#shexpand('%')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user