BASH PATCH REPORT ================= Bash-Release: 5.3 Patch-ID: bash53-020 Bug-Reported-by: Félix Bouynot Bug-Reference-ID: <39c9472ddcf23881693380c4b895dd3799b45cec.camel@setenforce.one> Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2026-05/msg00065.html Bug-Description: If readline handles a SIGWINCH and resizes its idea of the screen dimensions, it needs to recompute the columns where the prompt wraps lines every time, not just when the screen width decreases. Patch (apply with `patch -p0'): *** ../bash-5.3-patched/lib/readline/display.c Thu Sep 4 11:55:37 2025 --- lib/readline/display.c Fri May 22 14:55:01 2026 *************** *** 3526,3531 **** rl_crlf (); ! if (_rl_screenwidth < prompt_visible_length) ! _rl_reset_prompt (); /* update local_prompt_newlines array */ /* Redraw only the last line of a multi-line prompt. */ --- 3521,3527 ---- rl_crlf (); ! /* Let expand_prompt() update local_prompt_newlines and local_prompt_invis_chars ! arrays */ ! _rl_reset_prompt (); /* Redraw only the last line of a multi-line prompt. */ *** ../bash-5.3/patchlevel.h 2020-06-22 14:51:03.000000000 -0400 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400 *************** *** 26,30 **** looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 19 #endif /* _PATCHLEVEL_H_ */ --- 26,30 ---- looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 20 #endif /* _PATCHLEVEL_H_ */