svashisht / rpms / bash

Forked from rpms/bash 4 years ago
Clone

Blame SOURCES/bash42-002

ff19ae
			     BASH PATCH REPORT
ff19ae
			     =================
ff19ae
ff19ae
Bash-Release:	4.2
ff19ae
Patch-ID:	bash42-002
ff19ae
ff19ae
Bug-Reported-by:	Clark J. Wang <dearvoid@gmail.com>
ff19ae
Bug-Reference-ID:	<AANLkTimGbW7aC4E5infXP6ku5WPci4t=xVc+L1SyHqrD@mail.gmail.com>
ff19ae
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html
ff19ae
ff19ae
Bug-Description:
ff19ae
ff19ae
The readline vi-mode `cc', `dd', and `yy' commands failed to modify the
ff19ae
entire line.
ff19ae
ff19ae
Patch (apply with `patch -p0'):
ff19ae
ff19ae
*** ../bash-4.2-patched/lib/readline/vi_mode.c	2010-11-20 19:51:39.000000000 -0500
ff19ae
--- lib/readline/vi_mode.c	2011-02-17 20:24:25.000000000 -0500
ff19ae
***************
ff19ae
*** 1115,1119 ****
ff19ae
        _rl_vi_last_motion = c;
ff19ae
        RL_UNSETSTATE (RL_STATE_VIMOTION);
ff19ae
!       return (0);
ff19ae
      }
ff19ae
  #if defined (READLINE_CALLBACKS)
ff19ae
--- 1115,1119 ----
ff19ae
        _rl_vi_last_motion = c;
ff19ae
        RL_UNSETSTATE (RL_STATE_VIMOTION);
ff19ae
!       return (vidomove_dispatch (m));
ff19ae
      }
ff19ae
  #if defined (READLINE_CALLBACKS)
ff19ae
*** ../bash-4.2-patched/lib/readline/callback.c	2010-06-06 12:18:58.000000000 -0400
ff19ae
--- lib/readline/callback.c	2011-02-17 20:43:28.000000000 -0500
ff19ae
***************
ff19ae
*** 149,152 ****
ff19ae
--- 149,155 ----
ff19ae
  	  /* Should handle everything, including cleanup, numeric arguments,
ff19ae
  	     and turning off RL_STATE_VIMOTION */
ff19ae
+ 	  if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0)
ff19ae
+ 	    _rl_internal_char_cleanup ();
ff19ae
+ 
ff19ae
  	  return;
ff19ae
  	}
ff19ae
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
ff19ae
--- patchlevel.h	Thu Feb 24 21:41:34 2011
ff19ae
***************
ff19ae
*** 26,30 ****
ff19ae
     looks for to find the patch level (for the sccs version string). */
ff19ae
  
ff19ae
! #define PATCHLEVEL 1
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */
ff19ae
--- 26,30 ----
ff19ae
     looks for to find the patch level (for the sccs version string). */
ff19ae
  
ff19ae
! #define PATCHLEVEL 2
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */
ff19ae