Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

901
Visualizações
WSL (windows subsystem linux) breaks $PATH when the windows PATH has folder names with spaces

When I start WSL I cant add folders to path. I found out that this is because folders that are included in the windows PATH that has white spaces in their name break the linux $PATH. : For instance, when putting $PATH in the command line I am getting ....Some other folders...:/mnt/c/Program: no such file or directory.

If this was a manual process, I would use either "Program Files" of Program\ files but this is imported before ~/.bashrc kicks in so I dont know how to fix this.

Thank you for helping

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Folders with spaces in their names should be enclosed with "", '', or escaped with backslash.

This is my path in .bashrc which I added in WSL to be able to use the code . to start up VSCode from WSL.

export PATH=$PATH:"/mnt/c/Users/Kamal/AppData/Local/Programs/Microsoft VS Code/bin"
over 4 years ago · Santiago Trujillo Relatório

0

After some more playing around "$PATH" did the trick.

over 4 years ago · Santiago Trujillo Relatório

0

I ran into the same problem when I created a second instance of Ubuntu 20.04 and set the default user through /etc/wsl.conf. Quoting $PATH in Line 6 ( export PATH=$PATH:${snap_bin_path} ) in /etc/profile.d/apps-bin-path.sh solved the problem for me.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda