how to know what shell am I running in mac os code example
Example: mac check shell version
To see what shell is currently running (which may or may not be your default shell), use:
ps -o comm= $$
To see what shell is your default shell, run:
echo "$SHELL"