前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
Since spectrum.sh was copied from zsh, the typeset -A used is zsh specific and in bash4, it is declare -A. I've fixed it and I've added a check to error out with a readable message, in red color, to tell the user to upgrade bash.
拖放文件到此处或点击上传