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