|
Roman Rakus |
928cba |
BASH PATCH REPORT
|
|
Roman Rakus |
928cba |
=================
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
Bash-Release: 4.0
|
|
Roman Rakus |
928cba |
Patch-ID: bash40-020
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
Bug-Reported-by: Nicolai Lissner <nlissne@linux01.org>
|
|
Roman Rakus |
928cba |
Bug-Reference-ID: <20090412020510.GA29658@lilith>
|
|
Roman Rakus |
928cba |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-04/msg00104.html
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
Bug-Description:
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
If a SIGWINCH arrives while bash is performing redisplay, multi-line prompts
|
|
Roman Rakus |
928cba |
are displayed incorrectly due to the display code being called recursively.
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
Patch:
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
*** ../bash-4.0-patched/lib/readline/readline.h 2009-01-04 14:32:33.000000000 -0500
|
|
Roman Rakus |
928cba |
--- lib/readline/readline.h 2009-04-13 08:47:00.000000000 -0400
|
|
Roman Rakus |
928cba |
***************
|
|
Roman Rakus |
928cba |
*** 815,820 ****
|
|
Roman Rakus |
928cba |
#define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */
|
|
Roman Rakus |
928cba |
#define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
! #define RL_STATE_DONE 0x800000 /* done; accepted line */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
#define RL_SETSTATE(x) (rl_readline_state |= (x))
|
|
Roman Rakus |
928cba |
--- 815,821 ----
|
|
Roman Rakus |
928cba |
#define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */
|
|
Roman Rakus |
928cba |
#define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */
|
|
Roman Rakus |
928cba |
+ #define RL_STATE_REDISPLAYING 0x800000 /* updating terminal display */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
! #define RL_STATE_DONE 0x1000000 /* done; accepted line */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
#define RL_SETSTATE(x) (rl_readline_state |= (x))
|
|
Roman Rakus |
928cba |
*** ../bash-4.0-patched/lib/readline/display.c 2009-01-04 14:32:32.000000000 -0500
|
|
Roman Rakus |
928cba |
--- lib/readline/display.c 2009-04-13 08:29:54.000000000 -0400
|
|
Roman Rakus |
928cba |
***************
|
|
Roman Rakus |
928cba |
*** 513,516 ****
|
|
Roman Rakus |
928cba |
--- 513,517 ----
|
|
Roman Rakus |
928cba |
data structures. */
|
|
Roman Rakus |
928cba |
_rl_block_sigint ();
|
|
Roman Rakus |
928cba |
+ RL_SETSTATE (RL_STATE_REDISPLAYING);
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
if (!rl_display_prompt)
|
|
Roman Rakus |
928cba |
***************
|
|
Roman Rakus |
928cba |
*** 1237,1240 ****
|
|
Roman Rakus |
928cba |
--- 1238,1242 ----
|
|
Roman Rakus |
928cba |
}
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
+ RL_UNSETSTATE (RL_STATE_REDISPLAYING);
|
|
Roman Rakus |
928cba |
_rl_release_sigint ();
|
|
Roman Rakus |
928cba |
}
|
|
Roman Rakus |
928cba |
*** ../bash-4.0-patched/lib/readline/terminal.c 2009-01-04 14:32:34.000000000 -0500
|
|
Roman Rakus |
928cba |
--- lib/readline/terminal.c 2009-04-13 08:43:00.000000000 -0400
|
|
Roman Rakus |
928cba |
***************
|
|
Roman Rakus |
928cba |
*** 356,360 ****
|
|
Roman Rakus |
928cba |
if (CUSTOM_REDISPLAY_FUNC ())
|
|
Roman Rakus |
928cba |
rl_forced_update_display ();
|
|
Roman Rakus |
928cba |
! else
|
|
Roman Rakus |
928cba |
_rl_redisplay_after_sigwinch ();
|
|
Roman Rakus |
928cba |
}
|
|
Roman Rakus |
928cba |
--- 356,360 ----
|
|
Roman Rakus |
928cba |
if (CUSTOM_REDISPLAY_FUNC ())
|
|
Roman Rakus |
928cba |
rl_forced_update_display ();
|
|
Roman Rakus |
928cba |
! else if (RL_ISSTATE(RL_STATE_REDISPLAYING) == 0)
|
|
Roman Rakus |
928cba |
_rl_redisplay_after_sigwinch ();
|
|
Roman Rakus |
928cba |
}
|
|
Roman Rakus |
928cba |
*** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500
|
|
Roman Rakus |
928cba |
--- patchlevel.h 2009-02-22 16:11:31.000000000 -0500
|
|
Roman Rakus |
928cba |
***************
|
|
Roman Rakus |
928cba |
*** 26,30 ****
|
|
Roman Rakus |
928cba |
looks for to find the patch level (for the sccs version string). */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
! #define PATCHLEVEL 19
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
#endif /* _PATCHLEVEL_H_ */
|
|
Roman Rakus |
928cba |
--- 26,30 ----
|
|
Roman Rakus |
928cba |
looks for to find the patch level (for the sccs version string). */
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
! #define PATCHLEVEL 20
|
|
Roman Rakus |
928cba |
|
|
Roman Rakus |
928cba |
#endif /* _PATCHLEVEL_H_ */
|