Skip to content
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

Force cmd.exe to be used by system() instead of pwsh or powershell on Windows. #752

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

Acelya-9028
Copy link

cf #751.

@airblade
Copy link
Owner

Do you have any other shell* options set in your vimrc, e.g. shellcmdflag or noshelltemp, which could affect this?

@Acelya-9028
Copy link
Author

Acelya-9028 commented Dec 11, 2020

It's my config:

set shell=pwsh shellpipe=\| shellxquote=
set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command
set shellredir=\|\ Out-File\ -Encoding\ UTF8

but the official is runtime/doc/options.txt#L5209.

And a set noshelltemp yes, because vim-fugitive.

@airblade
Copy link
Owner

We don't need to worry about noshelltemp because system() ignores it.

It sounds like we're setting and restoring the appropriate options.

@airblade airblade merged commit 512e299 into airblade:master Dec 11, 2020
@airblade
Copy link
Owner

Thanks!

@Acelya-9028
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants