Skip to content

Commit

Permalink
rewrite with writefile
Browse files Browse the repository at this point in the history
  • Loading branch information
whoami authored and metakirby5 committed Feb 13, 2017
1 parent 9a570ec commit 25d4742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/codi.vim
Expand Up @@ -124,7 +124,7 @@ if has("unix")
call s:log('Linux detected, using `script -qfec "$bin" /dev/null`')
function! s:scriptify(bin)
" We need to make bin one string argument
call system('echo ' . s:shellescape_list(a:bin) . ' > /tmp/cmd')
call writefile([s:shellescape_list(a:bin)], '/tmp/cmd')
return ['script', '-qfec', '/tmp/cmd', '/dev/null']
endfunction
endif
Expand Down

0 comments on commit 25d4742

Please sign in to comment.