Skip to content

PATH environment variable #5099

Answered by therealkenc
0free asked this question in General
Apr 17, 2020 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

Looks like the relative path here is "Files/WindowsApps/CanonicalGroupLimited...." when "/mnt/c/Program Files/WindowsApps...." is intended. Somehow $PATH got borked by something before find was ever run. That something is almost always in (or called from) a customized .bashrc.

Possible remedies are:

  1. Fix the script that's mangling the $PATH containing spaces.
  2. Make the last thing you do in .bashrc setting $PATH explicitly (with or without Windows path components).
  3. Put appendWindowsPath=false in /etc/wsl.conf so there aren’t spaces to mangle.

The (3) option will mean you'll lose your windows path components, but you can fix that up with (2). Or do (1).

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by benhillis
Comment options

You must be logged in to vote
1 reply
@thagabe
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #5099 on September 06, 2020 01:12.