2022年11月11日(金) 7:58 of1 <o...@disroot.org>: > [...] > read -set .001 -d '' DISCARD > before the actual read -e > Alas, this does not work anymore with 5.2 (-e and -t > combination triggers shell exit or, when used in a script, prevents > further use of read -e).
Thanks for the report. I confirmed this. bash-5.2$ read -et 0.5 hello exit This is a regression introduced by the following commit commit 2fe2e8197eb8f05c22a23b9d1e115d74febc8325 (HEAD) Author: Chet Ramey <chet.ra...@case.edu> Date: Thu Mar 11 18:41:17 2021 -0500 application-settable readline timeouts This was introduced after the following discussion: https://lists.gnu.org/archive/html/bug-bash/2021-02/msg00059.html I checked the final version of the patch I submitted then, but my patch doesn't seem to have this problem. I guess some difference between my patch and the change actually applied would be causing the problem. Note: I submitted the final version of the patch in private communications, so it is not found in the mailing-list archive. For reproducibility, I attach to this email my final version of the patch set I sent to Chet: r0021-patches.tar.gz. The patch set applies to commit 26db5626. I'll later check the details. -- Koichi
r0021-patches.tar.gz
Description: application/gzip