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

Build 18945 breaks cmd-exe in /etc/profile.d/00-pengwin.sh on WSL2 #497

Closed
sirredbeard opened this issue Jul 27, 2019 · 8 comments
Closed
Labels
Bug This is a problem. Insider This issue affects Windows 10 Insider builds. Patched This has been fixed. Upstream Issue This is an issue with an upstream package. Workaround We have a workaround for this issue.

Comments

@sirredbeard
Copy link

See Twitter thread here: https://twitter.com/toktech/status/1154995860972998656

See WSL bug report here: microsoft/WSL#4337

Independent reproduction here: https://twitter.com/sferquel/status/1154876510408327168?s=20

@sirredbeard sirredbeard added Bug This is a problem. Triage We need to figure out what is going on here. Upstream Issue This is an issue with an upstream package. labels Jul 27, 2019
@sirredbeard
Copy link
Author

"Possible workaround is to edit /etc/profile.d/00-pengwin.sh to comment the lines containing cmd-exe or similar references." - Tobias Kohlbau

@sirredbeard sirredbeard changed the title Build 18945 breaks cmd-exe in /etc/profile.d/00-pengwin.sh Build 18945 breaks cmd-exe in /etc/profile.d/00-pengwin.sh on WSL2 Jul 27, 2019
@patrick330602
Copy link

Also, pengwin-setup is not working with the same reason. people who need work with Pengwin on this build should switch to WSL 1 temporarily.

@ghost
Copy link

ghost commented Jul 29, 2019

I have the same exact issue, but I tried to click on Ctrl + C and you will see you will get the prompt command, now, try to comment these lines inside the 00-pengwin.sh and it will work

#wHomeWinPath=$(cmd-exe /c 'echo %HOMEDRIVE%%HOMEPATH%' | tr -d '\r')
#export WIN_HOME=$(wslpath -u "${wHomeWinPath}")

@kalanyuz
Copy link

kalanyuz commented Aug 4, 2019

@HMounir I tried your work around but there are still a lot of things that won't work after upgrading to wsl2. For example code . no longer works.

Tried upgrading vanilla Ubuntu-18.04 to wsl2 and it doesn't seem to have this issue.

@Photonico
Copy link

00-pengwin.sh

Where is 00-pengwin.sh?
I can't find it via search file...

@crramirez
Copy link
Collaborator

/etc/profile.d/00-pengwin.sh

@sirredbeard
Copy link
Author

@kalanyuz

We are doing some environment interop stuff on launch and pengwin-setup that has been broken in WSL2 recent Insider builds.

Ubuntu doesn't do that so it's going to work for now. Sorry.

@sirredbeard sirredbeard added the Insider This issue affects Windows 10 Insider builds. label Aug 9, 2019
@sirredbeard sirredbeard pinned this issue Aug 12, 2019
@sirredbeard sirredbeard added Workaround We have a workaround for this issue. and removed Triage We need to figure out what is going on here. labels Aug 19, 2019
@sirredbeard
Copy link
Author

This has been patched in upstream.

@sirredbeard sirredbeard added the Patched This has been fixed. label Aug 29, 2019
@sirredbeard sirredbeard unpinned this issue Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a problem. Insider This issue affects Windows 10 Insider builds. Patched This has been fixed. Upstream Issue This is an issue with an upstream package. Workaround We have a workaround for this issue.
Projects
None yet
Development

No branches or pull requests

5 participants