Closed danieltwagner closed 2 years ago
macOS Monterey 12.1 offers
$ bash --version GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21) Copyright (C) 2007 Free Software Foundation, Inc.
... which sadly doesn't support mapfile/readarray.
I found this helpful substitute https://stackoverflow.com/questions/41475261/need-alternative-to-readarray-mapfile-for-script-on-older-version-of-bash which does the job for me on macOS.
macOS Monterey 12.1 offers
... which sadly doesn't support mapfile/readarray.
I found this helpful substitute https://stackoverflow.com/questions/41475261/need-alternative-to-readarray-mapfile-for-script-on-older-version-of-bash which does the job for me on macOS.