how use bash 5.0 port

2020-08-31 Thread Murray Eisenberg
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-66

Re: how use bash 5.0 port

2020-08-31 Thread Arno Hautala
> On 31 Aug 2020, at 12:32, Murray Eisenberg wrote: > > —> But how do I make this bash 5.0 my shell when I open Terminal? > This page includes info on changing the shell from the command line as well as from System Preferences. https://www.howtogeek.com/444596/how-to-change-the-default-shel

Re: how use bash 5.0 port

2020-08-31 Thread John Chivian
I have always been too cautious to change the default shell on MacOS to anything other than one that is officially provided, especially for the root account, even if those shell versions are as old as the hills.   For scripts and launchd process simply put the #!/path/to/bash5 at the top and th

Re: how use bash 5.0 port

2020-08-31 Thread Murray Eisenberg
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/ba

Re: how use bash 5.0 port

2020-08-31 Thread Eric F (iEFdev)
On 8/31/20 19:22 , 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 After that… use the `chsh' (*ch*ange *sh*ell) command: chsh -s /opt/local/bin/bash It should ask you for your pwd. If not,

Re: how use bash 5.0 port

2020-08-31 Thread Arno Hautala
I’m not sure what went awry from those steps, what does the following print for the “Shell” line? You’ll be asked for your password. > EDITOR=cat chsh You also shouldn’t need to reboot for these changes to take effect. Just opening a new Terminal window or tab should be enough. -- arno s ha

Re: how use bash 5.0 port

2020-08-31 Thread Uli Wienands
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 v

Re: how use bash 5.0 port

2020-08-31 Thread Murray Eisenberg
I think I found a way to fix this: Terminal > Preferences > General, in “Shells open with” keep “Command (complete path)” chosen and replace /usr/local/bin/bash with /opt/local/bin/bash (Or is this problemmatic?) > On 31 Aug2020, at 1:25 PM, Stephen J. Butler wrote: > > In Terminal -> Prefer

Re: how use bash 5.0 port

2020-08-31 Thread Rainer Müller
On 31/08/2020 18.32, Murray Eisenberg wrote: > 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? It's a bit hard to find, but this wiki page has instructions for both Terminal.app and iTerm2: https://trac.macp

Re: how use bash 5.0 port

2020-08-31 Thread Arno Hautala
> On 31 Aug 2020, at 15:52, Murray Eisenberg wrote: > > I think I found a way to fix this: > > Terminal > Preferences > General, in “Shells open with” keep “Command > (complete path)” chosen and replace /usr/local/bin/bash with > /opt/local/bin/bash > > (Or is this problemmatic?) Mine is

Re: how use bash 5.0 port

2020-08-31 Thread Steven Smith
To continue using bash on 10.15 and ignore the zsh deprecation: chsh -s /opt/local/bin/bash And, if using /bin/bash rather than MacPorts bash, stick this in your ~/.profile (or ~/.bash_profile): # don't use zsh default on macOS export BASH_SILENCE_DEPRECATION_WARNING=1 Note: These Catalina+ st

Re: how use bash 5.0 port

2020-08-31 Thread Ryan Schmidt
On Aug 31, 2020, at 16:41, Steven Smith wrote: > Note: These Catalina+ steps are not currently reflected in the MacPorts > instructions at > https://trac.macports.org/wiki/howto/bash-completion#Step3:UsebashfromMacPortsinyourterminal Anybody may feel free to add useful information to the wik

how NOT to use bash 5.0 port (was Re: how use bash 5.0 port)

2020-08-31 Thread Bill Cole
On 31 Aug 2020, at 13:22, John Chivian wrote: If you really want to change the default you can using the chsh command (man chsh), but I've never done so for the root or startup user. Too much experience based paranoia I guess. Yeah... It is not a good idea to change the default shell of root