Open
Description
On some occasions, when I load up a new shell instance, the windows PATH isn't included, despite interop.enabled
and interop.appendWindowsPath
both set to true
in /etc/wsl.conf.
To Reproduce
This error occurs pseudo-randomly when launching a new shell iinstance, but one of the most reliable ways I've found to produce it follows:
- Launch a new tmux session
- Create a new tmux window (not pane)
- Run
echo $PATH
in window 0; see that windows path is appended. Runcmd.exe /C echo hello world
to show that windows binaries can be executed from WSL. - Run
echo $PATH
in window 1; see that windows path is not appended. Runcmd.exe /C echo hello world
to show that windows binaries are not found in PATH.
Expected behavior
Windows' PATH should be appended to the PATH environment variable and Windows' binaries should be executable from within WSL in all new shell instances while the functionality is enabled per /etc/wsl.conf.
Enviroment:
- Windows build number: 10.0.22631.446
- Security Software: N/A
- WSL version 1/2: WSL2
- ArchWSL version 24.4.28.0
- ArchWSL Installer type zip clean
- Launcher version 24042000
Additional context
The shell I'm using is GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu). I have experienced this issue on multiple devices.
Metadata
Metadata
Assignees
Labels
No labels