You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows build number: Microsoft Windows [Version 10.0.19042.546]
Your Distribution version: Ubuntu-20.04
Whether the issue is on WSL 2 and/or WSL 1: the issue is both on WSL 1 and WSL 2
Steps to reproduce
Run wsl.exe --distribution Ubuntu-20.04 --exec /bin/echo "" in cmd.exe.
WSL logs:
Expected behavior
wsl.exe --distribution Ubuntu-20.04 --exec /bin/echo "" should output an empty line, like wsl.exe --distribution Ubuntu-20.04 --exec /bin/bash -c "/bin/echo ''" does.
Actual behavior
The command fails with error The parameter is incorrect..
The text was updated successfully, but these errors were encountered:
This is a bug. @benhillis When LxssCreateProcess parse arguments, "" is treated as Invalid parameter. maybe we should support empty parameter and convert empty back to "" before we pass it to linux.
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.
Environment
Steps to reproduce
Run
wsl.exe --distribution Ubuntu-20.04 --exec /bin/echo ""
in cmd.exe.WSL logs:
Expected behavior
wsl.exe --distribution Ubuntu-20.04 --exec /bin/echo ""
should output an empty line, likewsl.exe --distribution Ubuntu-20.04 --exec /bin/bash -c "/bin/echo ''"
does.Actual behavior
The command fails with error
The parameter is incorrect.
.The text was updated successfully, but these errors were encountered: