On Do, 13 Sep 2018, Igor Forca wrote:
> I have reverted back to first version problem appeared v8.1.0366.
>
> Tested and error "E959: Invalid diff format" appears as expected.
>
> I have set Windows' system Environment Variable
> CYGWIN and set it to value nodosfilewarning
> and rebooted Windows to make sure this variable is really set.
>
> Testing...
>
> cd \cygwin\bin
> diff -a --binary C:\Users\igor\AppData\Local\Temp\file1.txt
> C:\Users\igor\AppData\Local\Temp\file2.txt >c:\aaa\difftest_cygwin.log 2>&1
>
> And now Cygwin diff output is exactly the same as vim diff output:
> 1c1
> < aaa
> ---
> > bbb
>
> with no Cygwin Windows like path warning anymore at the top of output.
>
> Repeated the tests using:
> gvim -u NONE
> and the rest of the commands from my first post
> and there is NO PROBLEM!!!
>
> Just a note:
> In Cygwin documentation it is stated it is "strongly deprecated" to use
> Windows
> paths, because Unix like programs may have unexpected problems.
> I am writing a lot of Cygwin scripts and I want to get a Cygwin warning
> when Windows path is used instead of POSIX.
Thanks for verifying. If the warning appears on stderr, it might also
work to have the 'shellredir' option set and remove the 2>&1 part from
it. Not sure this will really work.
I am not sure if we should change it though, because technically, the
diff produced by cygwin with the warning is not really valid. Looks like
a side effect of patch 8.1.360 is that vim is now more strict in what it
expects as diff input. That might be a good thing.
Best,
Christian
--
Früher haben die Frauen auf ihrem eigenen Boden gekämpft. Da war jede
Niederlage ein Sieg. Heute kämpfen sie auf dem Boden der Männer. Da
ist jeder Sieg eine Niederlage.
-- Coco Chanel
--
--
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.