On 20-Dec-2010 18:07, Ben Fritz wrote:
> On Dec 19, 9:43 am, xaizek <[email protected]> wrote:
>> If program tries to read input it will be hanging in the memory. This
>> can be fixed by redirecting them to \\.\NUL, so program will get EOF
>> on read and no error on write. I don't handle the situation when
>> CreateFile can't open \\.\NUL, because I don't think it's necessary
>> and I don't know what error message should be used.
> 
> So, are you saying you can't do this?
> 
> :!start cmd /c "my app.exe" & pause
> 
> (see 
> http://vim.wikia.com/wiki/Execute_external_programs_asynchronously_under_Windows
> )
> 
> If this use case is sacrificed, I don't like the result.

As I understand the patch, the redirection to NUL will only be done when the /b
option has been given, so only this won't work:

 :!start /b cmd /c "my app.exe" & pause

As there won't be a console window, there's nothing that could receive the
keypress, anyway.

-- regards, ingo

-- 
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

Raspunde prin e-mail lui