簡體   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

每當我打開終端時,我都會收到錯誤 bash: export: `=': not a valid identifier in ubuntu

檢查您的./bash_profile文件並查看=符號周圍是否有空格 如下例所示刪除它們

foo = bar

會成為:

foo=bar

要編輯此文件,我不推薦使用普通文本編輯器,因為這可能會使用不正確的引號字符,請使用 Atom 之類的編輯器。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM