7 Bug-Reported-by: "Ralf S. Engelschall" <rse@engelschall.com>
8 Bug-Reference-ID: <20040728082038.GA31398@engelschall.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2004-07/msg00262.html
13 After upgrading the OpenPKG "bash" package to 3.0, we had to discover
14 that the prompt handling on Bash 3.0 / Readline 5.0 is broken if a
15 multiline prompt (a string containing newlines) is used. The effect is
16 that on the first input line (where the last line of the prompt is the
17 prefix) the input line is wrapped N characters before the last column
18 where N seems to be exactly the length (including newlines) of the
19 prompt ($PS1) minus the characters on the last line of the prompt.
23 *** ../bash-3.0/lib/readline/display.c Thu May 27 22:57:51 2004
24 --- lib/readline/display.c Wed Jul 28 13:48:04 2004
27 &prompt_last_invisible,
31 /* The portion of the prompt string up to and including the
33 &prompt_last_invisible,
35 ! &prompt_physical_chars);
37 /* The portion of the prompt string up to and including the
41 &prompt_invis_chars_first_line,
42 ! &prompt_physical_chars);
44 return (prompt_prefix_length);
47 &prompt_invis_chars_first_line,
50 return (prompt_prefix_length);
52 *** ../bash-3.0/patchlevel.h Wed Aug 22 08:05:39 2001
53 --- patchlevel.h Thu Sep 2 15:04:32 2004
56 looks for to find the patch level (for the sccs version string). */
58 ! #define PATCHLEVEL 1
60 #endif /* _PATCHLEVEL_H_ */
62 looks for to find the patch level (for the sccs version string). */
64 ! #define PATCHLEVEL 2
66 #endif /* _PATCHLEVEL_H_ */