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

Fix Powershell in CMD being mis-detected #34

Merged

Conversation

spowelljr
Copy link

Description

If you spawn a Powershell instance from CMD, sometimes the SHELL environment variable still points to CMD in the Powershell instance. So if SHELL is pointing to CMD, let's do extra work to get the correct shell.

@afbjorklund
Copy link

@spowelljr : This would need an upstream issue and PR as well, at https://github.com/docker/machine

Sounds good to me, I'm not sure how many start new CMD shells from their Powershell - but if they do...

@afbjorklund afbjorklund merged commit 753b247 into machine-drivers:master Jul 18, 2021
@spowelljr
Copy link
Author

@afbjorklund Thanks for merging, I'll make an upstream issue and PR as well.

@afbjorklund
Copy link

Not holding my breath that anyone will ever look at it, but just in case...

@spowelljr spowelljr deleted the fixPowershellDetection branch July 19, 2021 20:38
@spowelljr
Copy link
Author

Upstream issue docker#4891 & PR docker#4892

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.

2 participants