为什么我的Cygwin安装有错误的$ PATH?


0

我刚刚在我的电脑上安装了Cygwin。如果我输入 echo $PATH 我可以看到这个输出:

$ export $PATH
-bash: export: `/usr/local/bin:/usr/bin:/cygdrive/c/Program': not a valid identifier
-bash: export: `(x86)/NVIDIA': not a valid identifier
-bash: export: `Corporation/PhysX/Common:%CommonProgramFiles%/Microsoft': not a valid identifier
-bash: export: `Shared/Windows': not a valid identifier
-bash: export: `Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program': not a valid identifier
-bash: export: `Files/OpenVPN/bin:/cygdrive/c/Program': not a valid identifier
-bash: export: `(x86)/Git/cmd:/cygdrive/c/dev/java/apache-maven-3.2.3/bin:/cygdrive/c/programs/Java/jdk7/bin:/cygdrive/c/Users/edem/.lein/bin': not a valid identifier

似乎这里存在一些格式问题,但我不能指责它。可能是什么问题呢?

Answers:


1

你正试图导出 PATH。只需导出变量:

export PATH

或者你只是困惑 exportecho


如果我这样做,我就没有结果 export PATH
Adam Arold

我想我的编辑速度不够快。你在尝试吗? export PATH 要么 echo $PATH
garyjohn

哦,这就是问题所在。现在没关系,谢谢。
Adam Arold

在我的问题至少10分钟之前,我无法接受。
Adam Arold
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.