Thanks for your help. The terminal in Pycharm suddenly changed to "Bash-3.2" (for some unknown reason), which behaves differently than the Terminal app in macOS system.
I would like to change the terminal in Pycharm back to how it used to be, but I just cannot figure out the default value of "shell path". Thanks for your guidance!!!