-
Notifications
You must be signed in to change notification settings - Fork 822
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 command from windows not executed in appropriate folder in WSL file system #8585
Comments
Can you please clarify what you mean by this? |
You'd expect the output to be As for the docker thing... I have a file
That way any command made to this batch file is executed in WSL using the provided parameters. Running this script from |
@theotherp does it work outside
Tested on Windows 10 and
|
It has nothing to do with docker, just running I know it worked a couple of days ago. Since then I installed windows updates and enabled bitlocker for my boot drive. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.19044.1766]
WSL Version
Kernel Version
5.10.16
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
In windows execute
wsl.exe pwd
.Expected Behavior
pwd should print the mounted folder from which the command was excuted. For example running the command from
C:\temp
should print/mnt/C/temp
.Actual Behavior
I get
/
, i.e. the wsl command is always executed in the root folder. I forward calls to docker via a custom docker.cmd file but that means that the commands are not executed in the current working directory.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: