git-bash $ PATH无法用空格解析windows目录 [英] git-bash $PATH cannot parse windows directory with space
问题描述
我想在Windows 7(32位)机器上使用git-bash与github客户端一起使用。不知何故,git-bash已经从windows系统 PATH
了解了 $ PATH
变量。但是,我发现git-bash中的 $ PATH
没有正确解析win系统PATH。
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 system PATH
. However, I found the $PATH
in git-bash did not parse the win system PATH with space correctly.
例如 $ PATH
输出:
for example the $PATH
outputs:
.... / c / Program:没有这样的文件或目录
"..../c/Program: No such file or directory"
修理它? git-bash脚本在哪里为git shell构建 $ PATH
?
Thanks $ / $>
Is there anyway to fix it? where is the git-bash script to construct the $PATH
for git shell?
Thanks
推荐答案
为什么不使用绝对路径
相对路径
,如果文件名包含一个空格,只需使用(引号)。
Why not using absolute path
instead of relative path
and if a folder of file name contains a space just use ""
(quotes).
cd C:/ Users /我的文件夹
这篇关于git-bash $ PATH无法用空格解析windows目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!