Hi, I performed a git bisect compiling[1] both readline and bc from upstream[0] and found the commit (8e6ccd0) that introduced the issue. However this commit is the entire diff from "readline-7.0 patch 5" to "readline-8.0 distribution sources and documentation".
I also found that if I compiled without readline or libedit support the behaviour reverted to normal, albeit without any readline history. Kind Regards -- Tom [0] http://git.savannah.gnu.org/cgit/readline.git https://git.savannah.gnu.org/git/readline.git https://ftp.gnu.org/gnu/bc/ [1] compile.sh #!/bin/bash -eux cd /home/thomas/scratch/bctest/readline rm -r -f /home/thomas/scratch/bctest/readline/i ./configure --prefix=`pwd`/i make -j 8 make install cd /home/thomas/scratch/bctest wget -c https://ftp.gnu.org/gnu/bc/bc-1.07.1.tar.gz rm -r -f /home/thomas/scratch/bctest/bc-1.07.1 tar xf bc-1.07.1.tar.gz cd bc-1.07.1/ export CFLAGS="-I/home/thomas/scratch/bctest/readline/i/include/" export LDFLAGS="-L/home/thomas/scratch/bctest/readline/i/lib/" ./configure --prefix=`pwd`/i --with-readline=/home/thomas/scratch/bctest/readline/i/ make -j 8 make install echo echo "LD_LIBRARY_PATH=\"/home/thomas/scratch/bctest/readline/i/lib\" /home/thomas/scratch/bctest/bc-1.07.1/i/bin/bc"