1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

Update job test (#3750)

This commit is contained in:
Wang Shidong 2020-09-01 22:55:28 +08:00 committed by GitHub
parent 6085f56426
commit 1b81953378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,19 @@
Execute ( SpaceVim api: job ):
let job = SpaceVim#api#import('job')
let argv = ['cat']
let sys = SpaceVim#api#import('system')
let cmp = SpaceVim#api#import('vim#compatible')
if sys.isWindows
let cat = fnamemodify(v:progpath, ':h') . '\cat.exe'
else
let cat = 'cat'
endif
if !executable(cat)
finish
endif
for line in cmp.systemlist(shellescape(cat) . ' --version')
Log line
endfor
let argv = [cat]
let g:stdout = ''
let stderr = ''
let exit_data = 1