Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Process: stderr の内容が見たい #448

Closed
wants to merge 1 commit into from

Conversation

lambdalisue
Copy link
Member

result.error に入るようにした。 Windows わからん....

@lambdalisue
Copy link
Member Author

Help wanted!

@@ -81,6 +82,7 @@ function! s:execute(args, options) abort
if a:options.background && !s:Prelude.is_windows()
let cmdline = cmdline . ' &'
endif
let cmdline .= printf(' 2>%s', fnameescape(stderr))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fnameescape() はコマンドラインモードで使うやつっす。使うなら shellescape() かと。

let cmdline = join(map(
\ copy(a:args),
\ 'vimproc#shellescape(v:val)',
\))
let cmdline .= printf(' 2>%s', fnameescape(stderr))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vimproc の場合はそもそも vimproc#system() は使わずに vimproc#pgroup_open() 的なのを使った方が正確に取れそうです。

@lambdalisue
Copy link
Member Author

個人的に vimproc のサポート辛いのと https://github.com/lambdalisue/vital-System-Job 作ったので途中だけど close

@lambdalisue lambdalisue closed this Feb 8, 2017
@lambdalisue lambdalisue deleted the improve-System-Process branch February 8, 2017 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants