Skip to content

bash $PATH includes native Windows path entries #1640

Closed
@markgross

Description

  • A brief description
    I just noticed that there are entries in the bash PATH that include windows executibles. I'm not sure if this is a feature or a bug.

I see that my Anaconda3 (a windows python distrobution) has executibles on the bash path. I expected only linux native programs to be accessible from the ubuntu bash env.

mgross@marks-x1:$ which fetch_file.exe
/mnt/c/Program Files/Anaconda3/Scripts/fetch_file.exe
mgross@marks-x1:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files/Anaconda3:/mnt/c/Program Files/Anaconda3/Scripts:/mnt/c/Program Files/Anaconda3/Library/bin:/mnt/c/Users/mark9/AppData/Local/Microsoft/WindowsApp

I worry that the leakage of the Windows environment into the bash will result in unexpected behaviors from time to time.

  • Your Windows build number
    14986.rs_prerelease.161202-1928

  • Steps / All commands required to reproduce the error from a brand new installation
    not sure if Anaconda3 needs to be installed before enabling the WSL or after (or if that matters.)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions