git-bash $PATH cannot parse windows directory with space

前端 未结 7 1284
旧时难觅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:17

    I am having similar problem.
    After some struggle, i put this on the first line in my C:\Program Files\Git\etc\profile:

    export HOME=`cygpath -u "\`cygpath -d "$HOMEDRIVE$HOMEPATH"\`"`

    and type command echo $HOME in bash will come out /c/Users/NAMEXX~1, no more space parsing problem for my $HOME or ~/ !

    0 讨论(0)
提交回复
热议问题