尽管我已经运行了更新的 bash,但我仍然收到此错误消息:
You are running on a Mac and your bash version is too old (< 4).
Please try installing a newer version of bash under /usr/local/bin/bash.
当我运行时bash version
,我得到了这个:
GNU bash, version 5.1.16(1)-release (aarch64-apple-darwin21.1.0)
哪个 bash返回/opt/homebrew/bin/bash
但是当我运行 时echo $BASH_VERSION
,我得到一个空字符串。知道为什么会发生这种情况吗?
我正在运行 macOS Monterey - M1