0014-bash50-014.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From https://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-014
  2. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 5.0
  6. Patch-ID: bash50-014
  7. Bug-Reported-by: Johannes Hielscher <jhielscher@posteo.de>
  8. Bug-Reference-ID: <20190208205048.77c25a83@hordevm>
  9. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-02/msg00032.html
  10. Bug-Description:
  11. If the current line is empty, using the emacs C-xC-e binding to enter the
  12. editor will edit the previous command instead of the current (empty) one.
  13. Patch (apply with `patch -p0'):
  14. *** ../bash-5.0-patched/bashline.c 2019-01-16 16:13:21.000000000 -0500
  15. --- b/bashline.c 2019-02-11 11:18:57.000000000 -0500
  16. ***************
  17. *** 962,970 ****
  18. finished with the command, so we should not ignore the last command */
  19. using_history ();
  20. ! if (rl_line_buffer[0])
  21. ! {
  22. ! current_command_line_count++; /* for rl_newline above */
  23. ! bash_add_history (rl_line_buffer);
  24. ! }
  25. current_command_line_count = 0; /* for dummy history entry */
  26. bash_add_history ("");
  27. --- 965,970 ----
  28. finished with the command, so we should not ignore the last command */
  29. using_history ();
  30. ! current_command_line_count++; /* for rl_newline above */
  31. ! bash_add_history (rl_line_buffer);
  32. current_command_line_count = 0; /* for dummy history entry */
  33. bash_add_history ("");
  34. *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  35. --- b/patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  36. ***************
  37. *** 26,30 ****
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 13
  40. #endif /* _PATCHLEVEL_H_ */
  41. --- 26,30 ----
  42. looks for to find the patch level (for the sccs version string). */
  43. ! #define PATCHLEVEL 14
  44. #endif /* _PATCHLEVEL_H_ */