発生している問題・エラーメッセージ
eval "(rbenv init -)"
以下のようなエラーが発生します
(eval):13: parse error near `}
rbenvv init - の実行結果です。
terminal
1$ rbenv init - 2export PATH="/Users/name/.rbenv/shims:${PATH}" 3export RBENV_SHELL=zsh 4source '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.zsh' 5command rbenv rehash 2>/dev/null 6rbenv() { 7 local command 8 command="${1:-}" 9 if [ "$#" -gt 0 ]; then 10 shift 11 fi 12 13 case "$command" in 14 [{ichiro|3}|{jiro|1}|{saburo|2}]|[{jiro|1}|{saburo|2}|{ichiro|3}]) #この行でエラーが起きる 15 eval "$(rbenv "sh-$command" "$@")";; 16 *) 17 command rbenv "$command" "$@";; 18 esac 19}
状況
terminal
1$ ls ~/.rbenv/shims 21} 2} 2}] 3} 3}] [{ichiro [{jiro {ichiro {jiro {saburo
terminal
1$ ls ~/.rbenv/ 2shims versions # binディレクトリが存在せず
pyenv init -
で同じエラーが出現
試したこと
rbenv, rbenv-buildのアンインストール&再インストール(状況は変わらず)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/07/16 12:19
2019/07/16 12:27