<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Years ago I did shell surgery on a PowerMac running Tiger. What I
      did then, simply, was to replace the shell executable by the new
      version, keeping the old one around with a .bak extension or
      something like that.</p>
    <p>Needless to say, this was done only after verifying the new one
      worked, and the version was only a point change as this was merely
      to fix a vulnerability that at the time caused a bit of a stir.
      Tiger was not supported anymore so Apple did not provide a fix.</p>
    <p>My $0.02</p>
    <p>Uli<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/31/20 12:22 PM, Murray Eisenberg
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5CC16E76-9648-4CB1-94E7-F00BFB748E8A@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class="">To get the
        MacPorts bash 5.0 the default shell, I now tried:</div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><br class="">
      </div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><span class="Apple-tab-span" style="white-space:pre">       </span>-
        edit <span style="font-family: Menlo; font-size: 13px;" class="">/private/etc/shells </span>so
        as to add <span style="font-family: Menlo; font-size: 13px;"
          class="">/opt/local/bin/bash</span></div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><br class="">
      </div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><span class="Apple-tab-span" style="white-space:pre">       </span>-
        in System Preferences > Users & Groups, I opened Advanced
        Options for my (adminstrator’s) account and changed the entry
        for Login shell to <span style="font-family: Menlo; font-size:
          13px;" class="">/opt/local/bin/bash</span></div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><br class="">
      </div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><span class="Apple-tab-span" style="white-space:pre">       </span>-
        rebooted</div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><br class="">
      </div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class="">Still, when I
        open Terminal and issue command “<span style="font-family:
          Menlo; font-size: 13px;" class="">echo $BASH_VERSION</span>” I
        get response:  <span style="font-family: Menlo; font-size:
          13px;" class="">3.2.57(1)-release</span></div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><span
          style="font-family: Menlo; font-size: 13px;" class=""><br
            class="">
        </span></div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class=""><br class="">
      </div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class="">Note: if in that
        apparent 3.2.57 shell in Terminal, if I give command “<span
          style="font-family: Menlo; font-size: 13px;" class="">bash</span>”
        then of course I get response <span style="font-family: Menlo;
          font-size: 13px;" class="">5.0.17(1)-release</span></div>
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On 31 Aug2020, at 12:32 PM, Murray Eisenberg
              <<a href="mailto:murrayeisenberg@gmail.com" class=""
                moz-do-not-send="true">murrayeisenberg@gmail.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=UTF-8" class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; line-break: after-white-space;" class="">I want
                to upgrade the built-ub bash 3.2 shell on my macOS
                Catalina (10.15.6) to bash 5.0.
                <div class=""><br class="">
                </div>
                <div class="">I tried to do this by building from
                  scratch, using the methods given at <a
href="https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418"
                    class="" moz-do-not-send="true">https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418</a>.
                  But the final step, “sudo make install” gave a fatal
                  error of <span style="caret-color: rgb(51, 51, 51);
                    color: rgb(51, 51, 51); font-family: "Noto
                    Serif", serif; font-size: 19px;
                    background-color: rgb(255, 255, 255);" class="">‘libintl.h’
                    file not found.</span></div>
                <div class=""><br class="">
                </div>
                <div class="">So then I successfully installed the
                  MacPorts port <span style="font-family: Menlo;
                    font-size: 13px;" class="">bash @5.0.17_0.</span></div>
                <div class=""><font class="" face="Noto Serif, serif"
                    color="#333333"><span style="caret-color: rgb(51,
                      51, 51); font-size: 19px; background-color:
                      rgb(255, 255, 255);" class=""><br class="">
                    </span></font></div>
                <div class="">—> But how do I make this bash 5.0 my
                  shell when I open Terminal?</div>
                <div class="">
                  <div class=""><br class="">
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
        <div class="">
          ---<br class="">
          Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                     </span><a
            href="mailto:murrayeisenberg@gmail.com" class=""
            moz-do-not-send="true">murrayeisenberg@gmail.com</a><br
            class="">
          503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">      </span>Home
          (240)-246-7240<br class="">
          Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">     </span>Mobile
          (413)-427-5334<br class="">
          <br class="">
        </div>
        <br class="">
      </div>
    </blockquote>
  </body>
</html>