我安装了homebrew的bash包。当我打开一个新shell时:
bash --version
给了GNU bash, version 5.0.7(1)-release (x86_64-apple-darwin18.5.0)
which bash
不出所料地给出了/usr/local/bin/bash
。
但是:
echo $BASH_VERSION
产生3.2.57(1)-release
我想知道我是否应该为可能使用此环境变量的脚本解决这个问题。
https://stackoverflow.com/questions/56117918
复制相似问题