bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash 3.0 Official Patch 2


From: Chet Ramey
Subject: Bash 3.0 Official Patch 2
Date: Wed, 8 Sep 2004 15:39:23 -0400 (EDT)

                             BASH PATCH REPORT
                             =================

Bash-Release: 3.0
Patch-ID: bash30-002

Bug-Reported-by:  "Ralf S. Engelschall" <address@hidden>
Bug-Reference-ID: <address@hidden>
Bug-Reference-URL:  
http://lists.gnu.org/archive/html/bug-bash/2004-07/msg00262.html

Bug-Description:

After upgrading the OpenPKG "bash" package to 3.0, we had to discover
that the prompt handling on Bash 3.0 / Readline 5.0 is broken if a
multiline prompt (a string containing newlines) is used. The effect is
that on the first input line (where the last line of the prompt is the
prefix) the input line is wrapped N characters before the last column
where N seems to be exactly the length (including newlines) of the
prompt ($PS1) minus the characters on the last line of the prompt.

Patch:

*** ../bash-3.0/lib/readline/display.c  Thu May 27 22:57:51 2004
--- lib/readline/display.c      Wed Jul 28 13:48:04 2004
***************
*** 352,356 ****
                                       &prompt_last_invisible,
                                       (int *)NULL,
!                                      (int *)NULL);
        c = *t; *t = '\0';
        /* The portion of the prompt string up to and including the
--- 352,356 ----
                                       &prompt_last_invisible,
                                       (int *)NULL,
!                                      &prompt_physical_chars);
        c = *t; *t = '\0';
        /* The portion of the prompt string up to and including the
***************
*** 359,363 ****
                                                   (int *)NULL,
                                                   
&prompt_invis_chars_first_line,
!                                                  &prompt_physical_chars);
        *t = c;
        return (prompt_prefix_length);
--- 359,363 ----
                                                   (int *)NULL,
                                                   
&prompt_invis_chars_first_line,
!                                                  (int *)NULL);
        *t = c;
        return (prompt_prefix_length);

*** ../bash-3.0/patchlevel.h    Wed Aug 22 08:05:39 2001
--- patchlevel.h        Thu Sep  2 15:04:32 2004
***************
*** 26,30 ****
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 1
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 2
  
  #endif /* _PATCHLEVEL_H_ */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]