f12d007414
If a user has 'shellslash' set in Windows, then filename related functionality uses forward slashes instead of backslashes. This breaks running of external commands because some external commands in Windows treat any forward slash as a command line switch. This change adds s:shellescape(), which wraps Vim's shellescape(), but ensures 'noshellslash' is set first in Windows command prompt (not Cygwin or msys) environments. Having 'noshellslash' set when shellescape() is called causes the string to be quoted, regardless of whether there is whitespace or typical special characters, thus avoiding the interpretation of the string as being command line switches. Closes jamessan/vim-gnupg#41 Signed-off-by: James McCoy <vega.james@gmail.com> |
||
---|---|---|
.. | ||
gnupg.vim |