git-bash $PATH cannot parse windows directory with space

前端 未结 7 1290
旧时难觅i
旧时难觅i 2020-12-10 10:37

I would like to use git-bash come with github client on a windows 7 (32bit) machine. Somehow, the git-bash has already learned the $PATH variables from windows

7条回答
  •  眼角桃花
    2020-12-10 11:03

    Basically to confirm what is working: For environment variables use export keyword:

    export JAVA_HOME="/c/Program Files/Java/jdkxxxxx"
    

    same for PATH variable etc.

    You can put it in your ~/.bashrc . Then, use variables instead of direct string with spaces

提交回复
热议问题