<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I am new to MacPorts, so please excuse if this is dumb question.<div><br></div><div>I installed macports bash with the intention to use it as my primary shell with Terminal.app.  But when I configured Terminal to use /opt/local/bin/bash as the shell, then I get crashing behavior.  Specifically I can launch the terminal new window, it will open up the terminal window with bash running.  However if I type in an unknown command, it crashes with the following:</div><div><br></div><div><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(245, 245, 245); background-color: rgb(21, 21, 21);"><span style="font-variant-ligatures: no-common-ligatures">Steves-MacBook-Air:~ sjs$ lasdfasdf</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(245, 245, 245); background-color: rgb(21, 21, 21);"><span style="font-variant-ligatures: no-common-ligatures">objc[61030]: +[Swift.__SharedStringStorage initialize] may have been in progress in another thread when fork() was called.</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(245, 245, 245); background-color: rgb(21, 21, 21);"><span style="font-variant-ligatures: no-common-ligatures">objc[61030]: +[Swift.__SharedStringStorage initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(245, 245, 245); background-color: rgb(21, 21, 21);"><span style="font-variant-ligatures: no-common-ligatures">Abort trap: 6</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(245, 245, 245); background-color: rgb(21, 21, 21);"><span style="font-variant-ligatures: no-common-ligatures">Steves-MacBook-Air:~ sjs$ </span></p></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">If I run /opt/local/bin/bash another level deeper, then that instance of bash works as expected without crashing…</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">So what do I need to do in order to use /opt/local/bin/bash as my primary login shell under Terminal.app?</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">My suspicion is that when it’s first launched, it does not have /opt/local in the path yet until .bashrc is loaded later.  And so I’m theorizing that it’s linking up the wrong libraries or something from my MacOS Sequoia system.  On the other hand once I’m in the broken shell, how the path is set from .bashrc, so running bash again, then links up the second bash instance with the right underlying libs.  Just guessing out loud…</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">But anyone know what we need to do in order to use /opt/local/bin/bash as primary shell from Terminal.app?</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div></body></html>