-
Notifications
You must be signed in to change notification settings - Fork 10
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
WSL: unquoted $PATH value breaks under WSL #17
Comments
Hi @nbuwe, |
I may be mistaken, but WSL2 is a Linux container, isn't it? As far as I understand it uses a real Linux kernel (microsoft/WSL2-Linux-Kernel) and individual WSL guests are run as containers under the main Linux instance that runs microsoft/azurelinux internally. |
Sorry for miscommunication, I meant docker Linux container of course, that you may want to use building criu. |
I'm not sure how familiar with WSL are you. If not - just think I'm not trying to "build criu on WSL", I'm just trying to "build criu". The "on WSL" part is tangential (it could have been "build criu under Ubuntu 22 under VirtualBox", "build criu on Alpine inside docker" and many other things). I just happened to be on WSL in that particular moment in time, b/c for I don't really want the trivial quoting bug to diverge into a philosophical discussion of relative merits of dockerized builds vs. free-ranging builds. |
Here I agree with @nbuwe , despite spaces in path being evil. I've also cloned CRIU into |
criu/Makefile
Line 252 in daeef8f
Under WSL
PATH
may contain Windows directories with spaces in their names. Windows apps installed underC:\Program Files
that add themselves to the WindowsPATH
has their entries visible/inherited on the Linux side as/mnt/c/Program Files/...
entries in the LinuxPATH
.The value of
PATH
passed to theenv
command should be quoted.The text was updated successfully, but these errors were encountered: