<div dir="ltr">Thanks Rainer, that was exactly the case.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 11, 2021 at 7:02 AM Rainer Müller <<a href="mailto:raimue@macports.org">raimue@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 10/02/2021 22.35, Mike Summers via macports-users wrote:<br>
> I'm not able to get MacPorts bash working in Terminal as the default shell.<br>
> <br>
> This is fresh install of Big Sur 11.2 on a new machine, fresh install of<br>
> MacPorts. Only bash and bash-autocomplete are installed<br>
> <br>
> Setting the shell in either the Terminal preferences or for my user to<br>
> /opt/local/bin/bash always leaves me in /bin/bash <br>
<br>
Make sure you use the correct command to lauch in the Terminal preferences.<br>
See here for the details:<br>
<br>
<a href="https://trac.macports.org/wiki/howto/bash-completion#Terminal.app" rel="noreferrer" target="_blank">https://trac.macports.org/wiki/howto/bash-completion#Terminal.app</a><br>
<br>
> The "best" workaround so far is to start in zsh which has the PATH set correctly<br>
> and exec bash from there.<br>
<br>
The MacPorts installer only added PATH to the login shell of your user account.<br>
For zsh, you can find the addition the .zprofile file in your home directory.<br>
<br>
If you want to use a different shell, you need to make sure to configure PATH<br>
for that shell. For bash that means you need to configure it in your<br>
.bash_profile accordingly.<br>
<br>
<a href="https://guide.macports.org/chunked/installing.shell.html#installing.shell.postflight" rel="noreferrer" target="_blank">https://guide.macports.org/chunked/installing.shell.html#installing.shell.postflight</a><br>
<br>
> My old machine where has been through many upgrades including Big Sur "just works", <br>
> <br>
> I've run out of ideas, I'd appreciate pointers.<br>
<br>
Those older machines may already have the PATH settings in .bash_profile,<br>
because you most probably installed MacPorts while bash was the login shell.<br>
<br>
Rainer<br>
</blockquote></div>