BASH PATCH REPORT ================= Bash-Release: 3.2 Patch-ID: bash32-028 Bug-Reported-by: dAniel hAhler Bug-Reference-ID: Bug-Reference-URL: Bug-Description: Under some circumstances, readline will incorrectly display a prompt string containing invisible characters after the final newline. Patch: *** ../bash-3.2-patched/lib/readline/display.c 2007-08-25 13:47:08.000000000 -0400 --- lib/readline/display.c 2007-11-10 17:51:29.000000000 -0500 *************** *** 392,396 **** local_prompt = expand_prompt (p, &prompt_visible_length, &prompt_last_invisible, ! (int *)NULL, &prompt_physical_chars); c = *t; *t = '\0'; --- 420,424 ---- local_prompt = expand_prompt (p, &prompt_visible_length, &prompt_last_invisible, ! &prompt_invis_chars_first_line, &prompt_physical_chars); c = *t; *t = '\0'; *************** *** 399,403 **** local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length, (int *)NULL, ! &prompt_invis_chars_first_line, (int *)NULL); *t = c; --- 427,431 ---- local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length, (int *)NULL, ! (int *)NULL, (int *)NULL); *t = c; *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006 --- patchlevel.h Mon Oct 16 14:22:54 2006 *************** *** 26,30 **** looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 27 #endif /* _PATCHLEVEL_H_ */ --- 26,30 ---- looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 28 #endif /* _PATCHLEVEL_H_ */