bash44-022 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.4
  4. Patch-ID: bash44-022
  5. Bug-Reported-by: Nuzhna Pomoshch <nuzhna_pomoshch@yahoo.com>
  6. Bug-Reference-ID: <1317167476.1492079.1495999776464@mail.yahoo.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2017-05/msg00005.html
  8. Bug-Description:
  9. There are cases where a failing readline command (e.g., delete-char at the end
  10. of a line) can cause a multi-character key sequence to `back up' and attempt
  11. to re-read some of the characters in the sequence.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-4.4-patched/lib/readline/readline.c 2016-04-20 15:53:52.000000000 -0400
  14. --- lib/readline/readline.c 2018-05-26 17:19:00.000000000 -0400
  15. ***************
  16. *** 1058,1062 ****
  17. r = _rl_dispatch (ANYOTHERKEY, m);
  18. }
  19. ! else if (r && map[ANYOTHERKEY].function)
  20. {
  21. /* We didn't match (r is probably -1), so return something to
  22. --- 1056,1060 ----
  23. r = _rl_dispatch (ANYOTHERKEY, m);
  24. }
  25. ! else if (r < 0 && map[ANYOTHERKEY].function)
  26. {
  27. /* We didn't match (r is probably -1), so return something to
  28. ***************
  29. *** 1070,1074 ****
  30. return -2;
  31. }
  32. ! else if (r && got_subseq)
  33. {
  34. /* OK, back up the chain. */
  35. --- 1068,1072 ----
  36. return -2;
  37. }
  38. ! else if (r < 0 && got_subseq) /* XXX */
  39. {
  40. /* OK, back up the chain. */
  41. *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  42. --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  43. ***************
  44. *** 26,30 ****
  45. looks for to find the patch level (for the sccs version string). */
  46. ! #define PATCHLEVEL 21
  47. #endif /* _PATCHLEVEL_H_ */
  48. --- 26,30 ----
  49. looks for to find the patch level (for the sccs version string). */
  50. ! #define PATCHLEVEL 22
  51. #endif /* _PATCHLEVEL_H_ */