I have MacOS El Capitan - about bash it is:
bash --version ... version: 3.2.57(1)-release ...
I did realise the
mapfile command is not available in that bash release. I already did do research and the most obvious solution is upgrade bash - but the 95% of tutorials are based with Homebrew - therefore I can't use it because my macos is very old.
Do the same approach without Homebrew exists the following:
But all is about
install. Now according with my experience in Linux after to read a good amount of tutorials about installing and updating/upgrating sofware - it is better avoid manual installation and use repositories instead - for macos is homebrew ...
So, exists other way to update/upgrade bash without a manual make/install approach? through a
.dmg file for example
Even if it would be the unique other non-homebrew approach:
- is safe? - perhaps it asks for something that my current macos does not have and all go wrong
- is possible again do any future upgrade in peace? for example from 4.0 to 5.0 and go on ...