[英]bash: “export: command not found… -bash: export: `/usr/local/git/bin': not a valid identifier when opening terminal
I followed this setup for git: https://www.howtoforge.com/how-to-install-the-latest-git-version-on-centos and seemed like my bash file is broken. 我为git进行了以下设置: https : //www.howtoforge.com/how-to-install-the-latest-git-version-on-centos ,好像我的bash文件已损坏。 gives me this error: bash: “export: command not found... -bash: export: `/usr/local/git/bin': not a valid identifier
给我这个错误:bash:“导出:找不到命令... -bash:导出:`/ usr / local / git / bin':不是有效的标识符
Any step by step solution to this? 有任何解决方案吗? I tried restarting my computer but it still appears.
我尝试重新启动计算机,但它仍然出现。
You are doing something like this: 您正在执行以下操作:
export $var
and var
has the value /usr/local/git/bin. var
的值为/ usr / local / git / bin。 export
wants a variable name . export
想要一个变量名 。
$ var=/usr/local/git/bin
$ export $var
bash: export: `/usr/local/git/bin': not a valid identifier
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.