Skip to content

Conversation

@ysl2
Copy link

@ysl2 ysl2 commented Jan 16, 2023

I have set my default shell to powershell 7 (let &shell='pwsh'), but the command in function s:SaveFileTMPWin32 is cmd.exe format.
So I realized we should backup the original shell first (defined by &shell and &shellcmdflag, run :h system for more information), then run the "powershell paste image" command, finally we should recover the original shell. If we don't change the &shell to cmd.exe, it will return 1 indicates the command failed.

@ysl2 ysl2 changed the title Pin default shell to cmd.exe on windows. Fix path seprator for windows. Pin default shell to cmd.exe on windows Jan 16, 2023
@Konfekt
Copy link

Konfekt commented Jan 19, 2025

Since this recurs and has been battle-tested maybe, it's safer to copy from there

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.

3 participants