启动时出现Bash错误

0 bash

我启动终端,Bash自动运行.

什么时候我得到这个错误:

-bash: /Users/user/.bash_profile: line 1: unexpected EOF while looking for matching `''
-bash: /Users/user/.bash_profile: line 3: syntax error: unexpected end of file
Run Code Online (Sandbox Code Playgroud)

我如何解决它?

Tro*_*ott 5

/Users/user/.bash_profile涉及不匹配的引号时出错.在该文件的第一行中查找不匹配的引号.

  • +我.请注意,Bash会自动运行`.bash_profile`,这就是您在登录时看到此内容的原因. (3认同)