0
希望有人可以帮我找出这个错误的原因:BASH错误,意外的标记附近的“源”
-bash: /Users/me/.bash_profile: line 1: syntax error near unexpected token `source'
-bash: /Users/me/.bash_profile: line 1: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/me/.bash_profile'
这里是我的.bash_profile
行:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/me/.bash_profile
在'fi'和'source'之间尝试使用分号 –
您真的在同一个文件中采用'/ Users/me/.bash_profile'吗?这将导致无限循环。 – chepner