how use bash 5.0 port

Murray Eisenberg murrayeisenberg at gmail.com
Tue Sep 1 15:13:55 UTC 2020


I already had /opt/local/bin/ ahead of /bin in my PATH, but that did not fiix things. Only the change in Terminal’s Preferences,  which I described in a previous reply,  fixed it.

> On 1 Sep2020, at 11:05 AM, dan d. <dandunfee at gmail.com> wrote:
> 
> Macports puts binary app. files in /opt/local/bin .
> 
> The mac os uses the unix location of /bin/ for bash , that is where the default bash is found.
> 
> The way to call the bash 5 version first is either to move the macports version to /bin/ or put the /opt/local/bin/ in your shell path first.
> 
> Doing the latter is a good practice because all the macports apps. are directly available for use.
> 
> On Mon, 31 Aug 2020, Murray Eisenberg wrote:
> 
>> To get the MacPorts bash 5.0 the default shell, I now tried:
>> 
>> 	- edit /private/etc/shells so as to add /opt/local/bin/bash
>> 
>> 	- in System Preferences > Users & Groups, I opened Advanced Options for my (adminstrator???s) account and changed the entry for Login shell to /opt/local/bin/bash
>> 
>> 	- rebooted
>> 
>> Still, when I open Terminal and issue command ???echo $BASH_VERSION??? I get response:  3.2.57(1)-release
>> 
>> 
>> Note: if in that apparent 3.2.57 shell in Terminal, if I give command ???bash??? then of course I get response 5.0.17(1)-release
>> 
>>> On 31 Aug2020, at 12:32 PM, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>>> 
>>> I want to upgrade the built-ub bash 3.2 shell on my macOS Catalina (10.15.6) to bash 5.0.
>>> 
>>> I tried to do this by building from scratch, using the methods given at https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418 <https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418><https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418 <https://scriptingosx.com/2019/02/install-bash-5-on-macos/?unapproved=66418&moderation-hash=e680aa22ae89f6f565cadd63e63d04e0#comment-66418>>. But the final step, ???sudo make install??? gave a fatal error of ???libintl.h??? file not found.
>>> 
>>> So then I successfully installed the MacPorts port bash @5.0.17_0.
>>> 
>>> ???> But how do I make this bash 5.0 my shell when I open Terminal?
>>> 
>> 
>> ---
>> Murray Eisenberg			murrayeisenberg at gmail.com
>> 503 King Farm Blvd #101	Home (240)-246-7240
>> Rockville, MD 20850-6667	Mobile (413)-427-5334
>> 
>> 
>> 
> 
> -- 
> XR

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200901/a2745b0f/attachment.htm>


More information about the macports-users mailing list