When I open the terminal, the prompt is as follows:
<computer-name>:~ <username>$
When I run bash in the Mac terminal, it changes my prompt to the following of course:
bash-3.2$
However, this surprises me, because my shell is already bash: I know this because when I run the following echo command it yields bash:
echo $SHELL
/bin/bash
So, why does the prompt change, when bash is already my default? Is there something I'm misunderstanding here? Thank you.
echo $PS1before and after runningbash?/bin/bashis version 3.2 in Mac OS X; is your terminal configured to run a differentbashthat's not in your path on startup?bash -l; that will run it as a login shell, and it should give you your normal prompt.echo $PS1prints\h:W \u\$when using<computer-name>:~ <username>$, and it prints\s-\v\$when usingbash. What, if anything, does this tell us? Thanks.