-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set shellxquote properly for cmd.exe #3323
Conversation
I'm concerned that this could break others and generally. After reading WDYT? |
In my case I have the value of |
Ah, I see. In that case, should your changes be modified from
to
so that Vim will do the right thing, relying solely on |
You're right. That's a better idea. Tested with the following block to reset everything if go#util#IsWin()
set shell&
set shellredir&
set shellcmdflag&
set shellpipe&
set shellquote&
set shellxquote&
endif Would it make sense to do it everywhere, not only on Windows and just rely on defaults to properly escape arguments? |
I'm a little hesitant to change more than what we know is needed here, because the blast radius covers more systems than I can test on. For now, let's focus only on the |
Makes sense. Do you think we can add a test global variable which makes the plugin use all defaults? |
I'm not sure I understand what you mean. Can you clarify? |
I mean, have a global variable, like set shell&
set shellredir&
set shellcmdflag&
set shellpipe&
set shellquote&
set shellxquote& |
Thanks for clarifying. I don't think we need to introduce a new option yet. I'll merge these changes soon. |
Sorry for the long delay; I'd forgotten about this. |
I have custom
shellxquote
in my config and it breaks the plugin. Setting it to quote and restoring after the fact fixes the issue.