Mathias Michaelis wrote:

> >> If I do :!dir a console opens and says:
> >>     C:\WINNT\system32\CMD.EXE /c dir
> >>     shell returned -1
> >>
> > 
> > 2) If 1) doesn't help, you may want to produce the phenomena outside
> >    of vim. Open a cmd-window and type something like
> > 
> >    "path\to\vim\vimrun.exe" %windir%\system32\cmd.exe /c dir
> > 
> Juan told me he could reproduce the error outside of vim like that.
> I then consulted
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_system.2c_._wsystem.asp
> 
> and saw that vimrun.exe doesn't issue the full information of the
> error if the system() function call returns -1. This is why I
> suggest the following patch:

I'm not sure perror() can be used in general after system().  Otherwise
it makes sense.

-- 
Place mark here ->[ ]<- if you want a dirty monitor.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to