The patch bash53-009 suggests lib/readline/input.c be adjusted
however the line numbers are slightly off.

This is what I see :

$ diff -u lib/readline/input.c.orig lib/readline/input.c
--- lib/readline/input.c.orig   2025-05-02 13:29:05.000000000 +0000
+++ lib/readline/input.c        2025-12-11 13:18:14.367568556 +0000
@@ -971,11 +971,11 @@
         call the application's signal event hook. */
       if (rl_signal_event_hook)
        (*rl_signal_event_hook) ();
-#if defined (READLINE_CALLBACKS)
- else if (osig == SIGINT && (ostate & RL_STATE_CALLBACK) && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG))) + /* If the application's SIGINT handler returns, make sure we abort out of + searches and numeric arguments because we've freed necessary state. */ + if (osig == SIGINT && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
         /* just these cases for now */
         _rl_abort_internal ();
-#endif
     }
 }

Whereas the provided patch refers to lines 976 to 984.

Thus when one applies the patches in order we see :

|*** ../bash-20250807/lib/readline/input.c      Tue Jul  8 15:37:13 2025
|--- lib/readline/input.c       Fri Aug 22 15:04:05 2025
--------------------------
patching file lib/readline/input.c
Hunk #1 succeeded at 972 (offset -4 lines).

Just a minor nit.


--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken


  • slight tweak ... Dennis Clarke via Bug reports for the GNU Bourne Again SHell

Reply via email to