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