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