psss / rpms / bash

Forked from rpms/bash 6 years ago
Clone
Roman Rakus 779eeda
			     BASH PATCH REPORT
Roman Rakus 779eeda
			     =================
Roman Rakus 779eeda
Roman Rakus 779eeda
Bash-Release: 4.0
Roman Rakus 779eeda
Patch-ID: bash40-030
Roman Rakus 779eeda
Roman Rakus 779eeda
Bug-Reported-by:	Henning Bekel <h.bekel@googlemail.com>
Roman Rakus 779eeda
Bug-Reference-ID:	<7c6eacF262ctuU1@mid.individual.net>
Roman Rakus 779eeda
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2009-07/msg00054.html
Roman Rakus 779eeda
Roman Rakus 779eeda
Bug-Description:
Roman Rakus 779eeda
Roman Rakus 779eeda
A shell function invoked with `bind -x' is supposed to be able to move the
Roman Rakus 779eeda
cursor by setting READLINE_POINT.  The effects of this assignment were
Roman Rakus 779eeda
sometimes ignored.
Roman Rakus 779eeda
Roman Rakus 779eeda
Patch:
Roman Rakus 779eeda
Roman Rakus 779eeda
*** ../bash-4.0-patched/bashline.c	2009-01-08 09:29:24.000000000 -0500
Roman Rakus 779eeda
--- bashline.c	2009-07-16 14:13:41.000000000 -0400
Roman Rakus 779eeda
***************
Roman Rakus 779eeda
*** 3389,3393 ****
Roman Rakus 779eeda
    register int i;
Roman Rakus 779eeda
    intmax_t mi;
Roman Rakus 779eeda
-   int save_point;
Roman Rakus 779eeda
    sh_parser_state_t ps;
Roman Rakus 779eeda
    char *cmd, *value, *l;
Roman Rakus 779eeda
--- 3389,3392 ----
Roman Rakus 779eeda
***************
Roman Rakus 779eeda
*** 3433,3437 ****
Roman Rakus 779eeda
      VSETATTR (v, att_exported);
Roman Rakus 779eeda
    l = value_cell (v);
Roman Rakus 779eeda
-   save_point = rl_point;
Roman Rakus 779eeda
    value = inttostr (rl_point, ibuf, sizeof (ibuf));
Roman Rakus 779eeda
    v = bind_int_variable ("READLINE_POINT", value);
Roman Rakus 779eeda
--- 3432,3435 ----
Roman Rakus 779eeda
***************
Roman Rakus 779eeda
*** 3451,3455 ****
Roman Rakus 779eeda
      {
Roman Rakus 779eeda
        i = mi;
Roman Rakus 779eeda
!       if (i != save_point)
Roman Rakus 779eeda
  	{
Roman Rakus 779eeda
  	  rl_point = i;
Roman Rakus 779eeda
--- 3449,3453 ----
Roman Rakus 779eeda
      {
Roman Rakus 779eeda
        i = mi;
Roman Rakus 779eeda
!       if (i != rl_point)
Roman Rakus 779eeda
  	{
Roman Rakus 779eeda
  	  rl_point = i;
Roman Rakus 779eeda
*** ../bash-4.0/patchlevel.h	2009-01-04 14:32:40.000000000 -0500
Roman Rakus 779eeda
--- patchlevel.h	2009-02-22 16:11:31.000000000 -0500
Roman Rakus 779eeda
***************
Roman Rakus 779eeda
*** 26,30 ****
Roman Rakus 779eeda
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 779eeda
  
Roman Rakus 779eeda
! #define PATCHLEVEL 29
Roman Rakus 779eeda
  
Roman Rakus 779eeda
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 779eeda
--- 26,30 ----
Roman Rakus 779eeda
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 779eeda
  
Roman Rakus 779eeda
! #define PATCHLEVEL 30
Roman Rakus 779eeda
  
Roman Rakus 779eeda
  #endif /* _PATCHLEVEL_H_ */