More shell escaping bugs.

This commit is contained in:
LCD 47 2013-07-10 11:20:54 +03:00
parent a1e1108c8e
commit f4ccd312ee
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ endfunction
" A less noisy shellescape(expand()) " A less noisy shellescape(expand())
function! syntastic#util#shexpand(string) function! syntastic#util#shexpand(string)
return syntastic#util#shescape(expand(a:string)) return syntastic#util#shescape(escape(expand(a:string), '|'))
endfunction endfunction
function! syntastic#util#debug(msg) function! syntastic#util#debug(msg)

View File

@ -112,10 +112,10 @@ function s:GetOcamlcMakeprg()
if g:syntastic_ocaml_use_janestreet_core if g:syntastic_ocaml_use_janestreet_core
let build_cmd = "ocamlc -I " let build_cmd = "ocamlc -I "
let build_cmd .= expand(g:syntastic_ocaml_janestreet_core_dir) 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 return build_cmd
else else
return "ocamlc -c " . expand('%') return "ocamlc -c " . syntastic#util#shexpand('%')
endif endif
endfunction endfunction