The bug is NOT the error of the original GNU package, but of the way how it is integrated into the Ubuntu 21.04, because if I download the GNU package itself, compile and try, then it works fine.
and here if I do the same cut and paste tests, and drop a command with a terminating line feed character, then this bash binary will simply execute it ...
The bug is NOT the error of the original GNU package, but of the way how it is integrated into the Ubuntu 21.04, because if I download the GNU package itself, compile and try, then it works fine.
In detail what I did:
mkdir -p ~/bash
cd ~/bash
rm -fr bash-*
sudo apt-get -y install byacc
wget https:/ /ftp.gnu. org/gnu/ bash/bash- 5.1.tar. gz
tar xvzf bash-*.tar.gz
rm bash-*.tar.gz
cd bash-*
time ( ./configure ; make )
env -i PATH="$PWD:$PATH" ./bash --noprofile --norc
and here if I do the same cut and paste tests, and drop a command with a terminating line feed character, then this bash binary will simply execute it ...