`libintl.8.dylib` is required on OSX
Trying to run bash 5.1.016-1.2.3 (the macos-x86_64 build) on the M1 seems to fail with:
dyld[28034]: Library not loaded: '/usr/local/opt/gettext/lib/libintl.8.dylib'
Referenced from: '.../tools/bash--5.1.16/bash--darwin'
Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file)
/usr/local/opt/gettext/lib/libintl.8.dylib
Installing gettext from Homebrew doesn't help, because on the ARM OSX they've changed the URL to /opt/homebrew/....
(I know there is also an ARM build, but I was trying to support both Intel and ARM architectures with a single executable...)
Hmmm... I'll have to look into it further. Probably something with the way I'm building the executable. Unfortunately I don't have a M1/M2 Mac atm so my visibility into that will be a bit limited.
Hey there! Apologies for the delay. I think https://github.com/robxu9/bash-static/releases/tag/5.2.015-1.2.3-2 may help with this—I built bash to use its own bundled gettext instead. Let me know if that works for you.
Also note that I've finally put out a universal binary—let me know if that works for you!
Thanks for fixing it! However I don't have direct access to an OSX, so I'll have to ask my colleague to give it a try when he has the time. I'll report back my findings.