bash31-006 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.1
  4. Patch-ID: bash31-006
  5. Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
  6. Bug-Reference-ID: <200601120613.11907.vapier@gentoo.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2006-01/msg00045.html
  8. Bug-Description:
  9. Under some circumstances, Bash can use an incorrect setting for the flag
  10. that indicates whether or not the terminal can auto-wrap, resulting in line-
  11. wrapping errors.
  12. Patch:
  13. *** bash-3.1/lib/readline/terminal.c Sat Nov 12 20:46:54 2005
  14. --- bash-3.1/lib/readline/terminal.c Tue Jan 31 10:57:54 2006
  15. ***************
  16. *** 123,127 ****
  17. /* Non-zero means the terminal can auto-wrap lines. */
  18. ! int _rl_term_autowrap;
  19. /* Non-zero means that this terminal has a meta key. */
  20. --- 126,130 ----
  21. /* Non-zero means the terminal can auto-wrap lines. */
  22. ! int _rl_term_autowrap = -1;
  23. /* Non-zero means that this terminal has a meta key. */
  24. ***************
  25. *** 275,278 ****
  26. --- 278,284 ----
  27. int rows, cols;
  28. {
  29. + if (_rl_term_autowrap == -1)
  30. + _rl_init_terminal_io (rl_terminal_name);
  31. +
  32. if (rows > 0)
  33. _rl_screenheight = rows;
  34. *** bash-3.1/patchlevel.h Wed Jul 20 13:58:20 2005
  35. --- bash-3.1/patchlevel.h Wed Dec 7 13:48:42 2005
  36. ***************
  37. *** 26,30 ****
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 5
  40. #endif /* _PATCHLEVEL_H_ */
  41. --- 26,30 ----
  42. looks for to find the patch level (for the sccs version string). */
  43. ! #define PATCHLEVEL 6
  44. #endif /* _PATCHLEVEL_H_ */