#!/bin/bash
# shellcheck disable=SC2016


patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch &&

sed -i  '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in &&

./configure --prefix=/usr \
            --docdir=/usr/share/doc/bash-"${VERSION}" \
            --without-bash-malloc \
            --with-installed-readline &&

make &&

make -j1 install &&
mv -vf /usr/bin/bash /bin

#exec /bin/bash --login +h