Last active
August 29, 2015 14:06
-
-
Save cfriedline/37c1c81216a93a1cf240 to your computer and use it in GitHub Desktop.
update bash on OSX 10.9.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir bash-fix | |
cd bash-fix | |
curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz --insecure | tar zxf - | |
cd bash-92/bash-3.2 | |
curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 --insecure | patch -p0 | |
cd .. | |
xcodebuild | |
sudo cp /bin/bash /bin/bash.old | |
sudo cp /bin/sh /bin/sh.old | |
build/Release/bash --version # GNU bash, version 3.2.52(1)-release | |
build/Release/sh --version # GNU bash, version 3.2.52(1)-release | |
sudo cp build/Release/bash /bin | |
sudo cp build/Release/sh /bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually, just installed the updated bash from macports and created symlinks from /opt/local/bin/bash to /bin/bash and /bin/bash to /bin/sh.