how use bash 5.0 port
wienands at gmail.com
Mon Aug 31 18:00:01 UTC 2020
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.
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.
On 8/31/20 12:22 PM, 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
>> 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 Eisenbergmurrayeisenberg at gmail.com
> <mailto:murrayeisenberg at gmail.com>
> 503 King Farm Blvd #101Home (240)-246-7240
> Rockville, MD 20850-6667Mobile (413)-427-5334
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users