Did the shell ( terminal ) change in Catalina? My login script is behaving oddly since I moved to Catalina.  Particularly this line:

# set cursor to display path and command count
PS1="&lt;: \w | \! :&gt; "


Now my cursor actually has a \w and a \! in it.  Before in my older Mac from about 4 years ago it would show the path and command count.

Also this command stopped working:

history -c


and gives an error.

I looked at the default shell using

echo $SHELL


and it gave

/bin/zsh


and the current shell using

echo $0


and it gave

-zsh
Your shell has been changed to Zsh, which is the default for new users on Catalina (10.15) and later. To go back to the old shell (BASH), run chsh -s /bin/bash (chsh is a "Change Shell command, the -s flag is "set", and /bin/bash is the location of the BASH shell). Then close and re-open terminal, or log out and log back in, and your shell will be bash again.

Alternatively, if you want to use the GUI, open System Preferences, Users and Groups, unlock the padlock at the bottom left, and control-click or right click on your user. Then, select "Advanced Options." There should be an entry called "Login Shell", which you can set back to /bin/bash.

Source: How to set shell in OS X - Super User