On 11/10/22 3:19 PM, of1 wrote:

Bash Version: 5.2
Patch Level: 2
Release Status: release

        It is not a new behavior in 5.2, but since then I used to work around this issue with
         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).         Is there a solution to this problem? The return of the previous behavior of -e and -t combination would be fine for me although I don't understand why I need this.

Thanks for the report. I just fixed this yesterday based on another report.
Here's a patch; it will be in the next devel branch push.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/
*** ../bash-5.2-patched/builtins/read.def       2022-06-02 14:23:19.000000000 
-0400
--- builtins/read.def   2022-11-10 10:27:45.000000000 -0500
***************
*** 168,171 ****
--- 168,174 ----
    if (read_timeout)
      shtimer_clear (read_timeout);
+ #if defined (READLINE)
+   rl_clear_timeout ();
+ #endif
    read_timeout = 0;
  }

Reply via email to