标签: bash macos macos-mojave
为了更新bash,我已经提到了多篇文章。this this和this。尽管环境变量现在已更新。当我运行echo $BASH ; echo $BASH_VERSION时,它会打印/usr/local/bin/bash 5.0.11(1)-release,但仍然bash --version命令仍在打印version 3.2.57(1)-release。
echo $BASH ; echo $BASH_VERSION
/usr/local/bin/bash 5.0.11(1)-release
bash --version
version 3.2.57(1)-release