bash30-002 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.0
  4. Patch-ID: bash30-002
  5. Bug-Reported-by: "Ralf S. Engelschall" <rse@engelschall.com>
  6. Bug-Reference-ID: <20040728082038.GA31398@engelschall.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2004-07/msg00262.html
  8. Bug-Description:
  9. After upgrading the OpenPKG "bash" package to 3.0, we had to discover
  10. that the prompt handling on Bash 3.0 / Readline 5.0 is broken if a
  11. multiline prompt (a string containing newlines) is used. The effect is
  12. that on the first input line (where the last line of the prompt is the
  13. prefix) the input line is wrapped N characters before the last column
  14. where N seems to be exactly the length (including newlines) of the
  15. prompt ($PS1) minus the characters on the last line of the prompt.
  16. Patch:
  17. *** ../bash-3.0/lib/readline/display.c Thu May 27 22:57:51 2004
  18. --- lib/readline/display.c Wed Jul 28 13:48:04 2004
  19. ***************
  20. *** 352,356 ****
  21. &prompt_last_invisible,
  22. (int *)NULL,
  23. ! (int *)NULL);
  24. c = *t; *t = '\0';
  25. /* The portion of the prompt string up to and including the
  26. --- 352,356 ----
  27. &prompt_last_invisible,
  28. (int *)NULL,
  29. ! &prompt_physical_chars);
  30. c = *t; *t = '\0';
  31. /* The portion of the prompt string up to and including the
  32. ***************
  33. *** 359,363 ****
  34. (int *)NULL,
  35. &prompt_invis_chars_first_line,
  36. ! &prompt_physical_chars);
  37. *t = c;
  38. return (prompt_prefix_length);
  39. --- 359,363 ----
  40. (int *)NULL,
  41. &prompt_invis_chars_first_line,
  42. ! (int *)NULL);
  43. *t = c;
  44. return (prompt_prefix_length);
  45. *** ../bash-3.0/patchlevel.h Wed Aug 22 08:05:39 2001
  46. --- patchlevel.h Thu Sep 2 15:04:32 2004
  47. ***************
  48. *** 26,30 ****
  49. looks for to find the patch level (for the sccs version string). */
  50. ! #define PATCHLEVEL 1
  51. #endif /* _PATCHLEVEL_H_ */
  52. --- 26,30 ----
  53. looks for to find the patch level (for the sccs version string). */
  54. ! #define PATCHLEVEL 2
  55. #endif /* _PATCHLEVEL_H_ */