I set PS1 to '\t \$ ' in order to document the time required to do this. Everything was typed by hand and done from memory except a short alt-tab to nvALT to ensure proper numbering for curl'ing the patches.
- md src
- curl -OL http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz
- tar xzf bash-4.2.tar.gz
- cd bash-4.2
- md patches
- curl -L "http://mirror.anl.gov/pub/gnu/bash/bash-4.2-patches/bash42-0[01-45]" -o "bash42-0#1"
- cd ..
- for patchfile in ./patches/*; do patch -p0 <"$patchfile"; done
- ./configure
- make -j4
- sudo make install
To wrap up simply edit /etc/shells like in my previous post and chsh -s on your user.
cd src
ReplyDeletecurl -OL http://ftpmirror.gnu.org/bash/bash-4.4.tar.gz
tar xzf bash-4.4.tar.gz
cd bash-4.4/
md patches
curl -L "http://gnu.mirrors.hoobly.com/bash/bash-4.4-patches/bash44-0[01-23]" -o "bash44-0#1"
for patchfile in ./patches/*; do patch -p0 <"$patchfile"; done
./configure
make -j6
sudo make install
sudo vim /etc/shells
chsh -s /usr/local/bin/bash