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

Created on 27 Jul 2019  路  8Comments  路  Source: WhitewaterFoundry/Pengwin

Bug Insider Patched Upstream Issue Workaround

Most helpful comment

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}")

All 8 comments

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

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.

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}")

@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.

00-pengwin.sh

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

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

@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.

This has been patched in upstream.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanfluff picture alanfluff  路  3Comments

ket000 picture ket000  路  5Comments

LucasYihsuehTsai picture LucasYihsuehTsai  路  3Comments

mikart143 picture mikart143  路  5Comments

AceHack picture AceHack  路  4Comments