I was following a tutorial on how to update my bash version and everything was fine until I had to add /usr/local/bin/bash into /etc/shells. after I added it I had to run this command sudo chsh -s /usr/local/bin/bash. It gave me an error saying
/usr/local/bin/bash: No such file or directory
then I tried restarting my terminal then it said this
login: /usr/local/bin/bash: No such file or directory
[Process completed]
So then I went to the files that I edited via a text editor and changed them back to how the were before. But then after I restarted my terminal again I got the same error.