【问题标题】: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
【发布时间】:2020-08-18 21:07:17
【问题描述】:

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

【问题讨论】:

    标签: bash profile


    【解决方案1】:

    检查您的 ./bash_profile 文件并查看 = 符号周围是否有任何 空格。如下例所示删除它们

    foo = bar
    

    会变成:

    foo=bar
    

    要编辑此文件,我不推荐使用普通文本编辑器,因为这可能会使用不正确的引号字符,请使用 Atom 之类的编辑器。

    【讨论】:

      猜你喜欢
      • 2021-10-19
      • 1970-01-01
      • 2021-02-11
      • 1970-01-01
      • 2015-07-20
      • 1970-01-01
      • 2023-01-29
      • 2021-12-17
      • 2022-10-15
      相关资源
      最近更新 更多