Claude Codeでparse error near `()'みたいのが出る時
Claude Codeでこんなんが出て、コマンドの結果がエラーになる
/var/folders/m5/s6x3rp3d4xx83l4wx1rmg0gc0000gn/T/claude-shell-snapshot-943f:4277: parse error near ()'`
僕の場合はzpreztoが悪さをしていた
解決
SHELL=/bin/bash claudeで起動するのが一つの解決方法
VS Codeの拡張だと↑ができないので、.zshrcのinit.zsh周りを編集すると↑も不要になる
code:.zshrc
if -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ; then
if -z "${CLAUDECODE}" ; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
fi
ref.
https://github.com/anthropics/claude-code/issues/783#issuecomment-2803480760