AutoFenc icon indicating copy to clipboard operation
AutoFenc copied to clipboard

Fails on Windows with Cygwin/bash set as shell

Open fnxweb opened this issue 8 years ago • 1 comments

On Windows if shell is set to bash (e.g., when using Cygwin), the custom nobbling of shellslash in s:SafeShellEscape actually breaks things, and you get E484 errors trying to use the temp file.

I've patched mine to not perform the nobble if shell is set to a shell-like filename:

if ( has("win32") || has("win64") ) && &shell !~? "sh$"

You could arguably do the opposite check against cmd.

fnxweb avatar Apr 03 '17 08:04 fnxweb

Thank you for the report. I will check it once I am on Windows.

s3rvac avatar Apr 04 '17 14:04 s3rvac