On Wed, Sep 18, 2013 at 11:54:13PM +0800, zxycscj wrote: > I have downlaod bash-4.2.tar.gz and all the patches for it. > how to use the patch files to install? > > http://ftp.gnu.org/gnu/bash/ > bash-4.2.tar.gz > > http://ftp.gnu.org/gnu/bash/bash-4.2-patches/ > bash42-001.sig > bash42-001.txt ...
gzip -dc bash-4.2.tar.gz | tar xf - cd bash-4.2 for f in ../bash42-*.txt; do patch -p0 < "$f" done