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
Microsoft Windows 11 Enterprise [10.0.22000 Build 22000]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
WSL 2
WSL 1
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
Ubuntu 22.04
Other Software
Rancher Desktop v1.9.1
Visual Studio Code
Repro Steps
Install WSL2 using Ubuntu distro in microsoft app store
Install Rancher Desktop
Install Visual Studio Code and WSL extension
Install helper programs like gvm and pyenv, update path accordingly in .bashrc
/mnt/c/Users/Peter_Chang1/AppData/Local/Programs$ ls -lrt
total 0
drwxrwxrwx 1 changpeter changpeter 512 Aug 15 20:47 Common
drwxrwxrwx 1 changpeter changpeter 512 Aug 15 20:48 'Microsoft VS Code'
drwxrwxrwx 1 changpeter changpeter 512 Aug 15 20:59 'Rancher Desktop'
/mnt/c/Users/Peter_Chang1/AppData/Local/Programs$ cd 'Rancher Desktop'/
-bash: cd: too many arguments
/mnt/c/Users/Peter_Chang1/AppData/Local/Programs$ cd "Rancher Desktop"
-bash: cd: too many arguments
Expected Behavior
Two issues:
We should be able to navigate to /mnt (windows) folders with spaces using proper escape or quotes
We should not have colons for spaces in linux $PATH variable
Actual Behavior
Cannot navigate to specific folders with spaces in them in /mnt
Cannot find binaries or scripts in our PATHs due to colons
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
I found the issue only occurs when I install GVM (golang version manager) on Ubuntu WSL2, it seems to change the PATH to include those colons and also does something very weird, I didn't save the log message unfortunately but can see this when I check the cd command
Normal response
$ type cd
cd is a shell builtin
When GVM installed:
cd is a function...
... some code for GVM specific operations ...
Essentially gvm at least in current latest version rewrites the cd builtin command with it's own for some reason which is not expected imo and makes it unusable. It shouldn't be doing that at all
Windows Version
Microsoft Windows 11 Enterprise [10.0.22000 Build 22000]
WSL Version
1.2.5.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
Ubuntu 22.04
Other Software
Rancher Desktop v1.9.1
Visual Studio Code
Repro Steps
Expected Behavior
Two issues:
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: