On Mi, 12 Sep 2018, Igor Forca wrote:
> Christian, I have performed several tests. > > Today I have installed v8.1.0374. > > c:\Programs\Vim\vim81>c:\programs\vim\vim81\gvim -u NONE > :cd c:\aaa > :e a.txt > :vert diffsp b.txt > > And it works fine (double checked with v8.1.0366 which produces "Invalid diff > format" error). > But in v8.1.0374 I see no external window is opened, so probably some patch > set vim to use internal diff program by default, which is great, love it. > > Additionally I did: > :set diffopt-=internal > and imediatelly got error: > E959: Invalid diff format. > > Now I have closed gVim and renamed C:\CYGWIN to C:\_CYGWIN > and repeated all above steps and no error as expected. > > Additional test with dir still named C:\_CYGWIN name > c:\Programs\Vim\vim81>c:\programs\vim\vim81\gvim -u NONE > :set diffopt-=internal > :cd c:\aaa > :e a.txt > :vert diffsp b.txt > > Above did not produce any error as expected (because of name C:\_CYGWIN), > but interesting there was also no external diff window (unexpected). > > Get some info: > :verbose set diffopt? diffexpr? > > diffopt=filler > diffexpr= > > > :20verbose diffupdate > > Calling shell to execute: "diff -a --binary > C:\Users\igor\AppData\Local\Temp\VIo > 3644.tmp C:\Users\igor\AppData\Local\Temp\VIn3645.tmp > >C:\Users\igor\AppData\Loc > al\Temp\VId3656.tmp 2>&1" > Calling shell to execute: "diff -a --binary > C:\Users\igor\AppData\Local\Temp\VIo > 3644.tmp C:\Users\igor\AppData\Local\Temp\VIn3645.tmp > >C:\Users\igor\AppData\Loc > al\Temp\VId3656.tmp 2>&1" > > > Christian, if you can't reproduce a problem, then there got to be something > at my place. > As described yesterday, I really love internal diff, because it is just much > faster to start > and no external window opened which is more elegant/beautiful. > > If you are willing to dig more into this problem I am willing to assistm > but please don't do it just for me, because I don't need external diff > program. Two questions: What are your shell options? If you place two files into C:\Users\igor\AppData\Local\Temp\ and run the command diff -a --binary C:\Users\igor\AppData\Local\Temp\file1.txt diff -a --binary C:\Users\igor\AppData\Local\Temp\file2.txt 2>&1 With both diff commands does that produce any differences? Could it be that the cygwin diff does not understand the windows path and it errors out? Best, Christian -- Benutzerfreundlichkeit, einfache Installation und lesbare Fehlermeldungen mit Erklärungen und Vorgehensvorschlägen sind in der Informatik immer noch wie der Yeti im Himalaja: Gerüchten zu folge soll es sie geben." -- -- 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.
