Escape cmd.exe reserved chars
This commit is contained in:
parent
6089090b85
commit
b3334eb659
@ -149,8 +149,11 @@ fu! s:esctagscmd(bin, args, ...)
|
|||||||
if exists('+ssl')
|
if exists('+ssl')
|
||||||
let [ssl, &ssl] = [&ssl, 0]
|
let [ssl, &ssl] = [&ssl, 0]
|
||||||
en
|
en
|
||||||
let fname = a:0 == 1 ? shellescape(a:1) : ''
|
let fname = a:0 ? shellescape(a:1) : ''
|
||||||
let cmd = shellescape(a:bin).' '.a:args.' '.fname
|
let cmd = shellescape(a:bin).' '.a:args.' '.fname
|
||||||
|
if &sh =~ 'cmd\.exe'
|
||||||
|
let cmd = substitute(cmd, '[&()@^<>|]', '^\0', 'g')
|
||||||
|
en
|
||||||
if exists('+ssl')
|
if exists('+ssl')
|
||||||
let &ssl = ssl
|
let &ssl = ssl
|
||||||
en
|
en
|
||||||
|
Loading…
x
Reference in New Issue
Block a user