简体   繁体   English

每当我打开终端时,我都会收到错误 -bash: export: `=': not a valid identifier in ubuntu

[英]Whenever I open my terminal, I get the error -bash: export: `=': not a valid identifier in ubuntu

Whenever I open my terminal, I get the error-bash: export: `=': not a valid identifier in ubuntu每当我打开终端时,我都会收到错误 bash: export: `=': not a valid identifier in ubuntu

Check your ./bash_profile file and see if there are any white spaces around the = sign.检查您的./bash_profile文件并查看=符号周围是否有空格 Remove them as in the example below如下例所示删除它们

foo = bar

Would become:会成为:

foo=bar

To edit this file I wouldn't recommend a normal text editor as this can use improper quote characters, use an editor like Atom.要编辑此文件,我不推荐使用普通文本编辑器,因为这可能会使用不正确的引号字符,请使用 Atom 之类的编辑器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在我的 VSCode 终端中收到此错误:“bash: export: `=': not a valid identifier” - Get this error: "bash: export: `=': not a valid identifier" in my VSCode Terminal bash:导出:'PATH…':每次我打开bash时都不是有效的标识符消息 - bash: export: 'PATH…': not a valid identifier message every time i open bash 新手终端,php,“-bash:导出:不是有效的标识符” - Novice terminal , php, “-bash: export: not a valid identifier” 在 Ubuntu 上打开终端时记录:"bash: export: "PATH.": not a valid identifier" - Log: "bash: export: "PATH.": not a valid identifier" when opening terminal on Ubuntu not a valid identifier Mac OS Terminal 每次打开它时都会返回错误。 与 PATH 变量有关? - not a valid identifier Mac OS Terminal returning an error every time I open it. Related to PATH variable? -bash: export: `=': 不是一个有效的标识符 - -bash: export: `=': not a valid identifier Bash导出:无效的标识符 - Bash export: not a valid identifier -bash:导出:不是有效的标识符 - -bash: export: not a valid identifier Bash 每次打开 Ubuntu 终端时都没有这样的文件或目录 - Bash no such file or directory every time I open the Ubuntu terminal 当我在Mac上打开终端时,如何摆脱“ -bash:ulimit:open files” - How can I get rid of “-bash: ulimit: open files” when I open terminal on my mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM