2016-09-01 21:04 GMT+09:00 Bram Moolenaar <[email protected]>: > > Thinca wrote: > >> :help channel-close says: >> >> Once done with the channel, disconnect it like this: > >> call ch_close(channel) >> When a socket is used this will close the socket for both directions. When >> pipes are used (stdin/stdout/stderr) they are all closed. This might not be >> what you want! Stopping the job with job_stop() might be better. >> >> It seems there is no way to close only stdin. >> How to execute a command that waits the end of input, like sort? > > Good point. I wonder why nobody mentioned it before. > > We should also close the pipe/socket when reading from a buffer is done, > for a command like: > > let job = job_start('sort', {'in_io': 'buffer', 'in_name': 'sortin', > 'out_io': 'buffer', 'out_name': 'sortout'}) > > -- > An actual excerpt from a classified section of a city newspaper: > "Illiterate? Write today for free help!" > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > \\\ an exciting new programming language -- http://www.Zimbu.org /// > \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Thank you for response. And I saw and tried 7.4.2298. This is great. Thanks! Best regards, -- thinca <[email protected]> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
