Windows Version
Microsoft Windows [Version 10.0.19045.2728]
WSL Version
1.1.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.90.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Jan 27 02:56:13 UTC 2023
Distro Version
Debian GNU/Linux 11 (bullseye)
Other Software
No response
Repro Steps
- Export the VM to a tar file.
wsl --export Debian "J:\WSL\ISO\Debian\wsl-debian-11.tar"
- Unregister the distribution.
wsl --unregister Debian
- Import the distribution, specifying its name with double quotes:
wsl --import "Debian 11" "J:\WSL\VM\Debian\wsl-debian" "J:\WSL\ISO\Debian\wsl-debian-11.tar"
An error occurs:
J:\WSL>wsl --import "Debian 11" "J:\WSL\VM\Debian\wsl-debian" "J:\WSL\ISO\Debian\wsl-debian-11.tar"
Import in progress, this may take a few minutes.
The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG
When importing and specifying distro name without double quotes, it works fine.
J:\WSL>wsl --import Debian "J:\WSL\VM\Debian\wsl-debian" "J:\WSL\ISO\Debian\wsl-debian-11.tar"
Import in progress, this may take a few minutes.
The operation completed successfully.
Expected Behavior
I expect to be able to use distribution names having a space in them and specifying disto name inside double quotes.
For example, I expect to be able to specify a distro name as:
"Debian"
or
"Debian 11"
Actual Behavior
J:\WSL>wsl --import "Debian 11" "J:\WSL\VM\Debian\wsl-debian" "J:\WSL\ISO\Debian\wsl-debian-11.tar"
Import in progress, this may take a few minutes.
The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG
Diagnostic Logs
No response
Windows Version
Microsoft Windows [Version 10.0.19045.2728]
WSL Version
1.1.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.90.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Jan 27 02:56:13 UTC 2023
Distro Version
Debian GNU/Linux 11 (bullseye)
Other Software
No response
Repro Steps
An error occurs:
When importing and specifying distro name without double quotes, it works fine.
Expected Behavior
I expect to be able to use distribution names having a space in them and specifying disto name inside double quotes.
For example, I expect to be able to specify a distro name as:
or
Actual Behavior
Diagnostic Logs
No response