How to test what shell I am using in a terminal?
How do I determine the current shell path or shell name?
I only really need to distinguish
bash, however a portable solution would be nice.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.