Windows Build 16193-16215 have PATH bug in Windows Subsystem for Linux

Note: This bug no longer exists in the Windows Store Ubuntu app–you should uninstall the deprecated WSL beta and install the Windows Store Ubuntu app


Starting at about Windows Build 16193, it was acknowledged by Microsoft that WSL was ignoring ~/.bashrc and ~/.bash_aliases and stuffing the full Windows %PATH% into Bash $PATH.

The workaround I’ve used successfully is to put these needed items e.g. export PATH and alias commands into ~/.bash_profile.

~/.bash_profile is used for interactive shells, which is what virtually all WSL users are using it for, since WSL closes when the last WSL Terminal closes (no Linux services yet like Cygwin has).

Leave a Comment