A recent upgrade appears to have broken the ability of Windows-native gvim
(7.4) to run :!
-like commands using Cygwin's bash
as the shell. (No doubt it's something that's been configured for my convenience that I'll have to find and deconfigure.)
If you can tell me how I might fix it, work around it, or help things along, thank you, etc., etc.
The minimal example
First, enter this list into the buffer of a new gvim
window:
1
2
3
4
5
Then, configure the shell settings to Cygwin bash:
:let &shell="C:\\cygwin64\\bin\\bash.exe"
:let &shellcmdflag="-c"
:let &shellxquote="\""
Finally, run wc
using the shell, replacing the current buffer contents.
:%!/usr/bin/wc
On the Windows 10 machine, I get a few seconds of hang followed by an E485 at the bottom of the window:
shell returned 254
E485: Can't read file C:/Users/psmay/AppData/Local/Temp/VIo4283.tmp
The Windows 8.1 machine I have on remote, which is otherwise similarly configured, behaves appropriately, replacing the buffer with wc
's output:
5 5 15