:Help on controlling BASH command line

John Wildberger wildberger-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org
Mon Jun 6 21:47:36 UTC 2005


In my reply to Lennard Sorensen I mentioned a bug in Bash Ver 3.
The following  is a detailed description:
Cheers,
John

Submitted By: Jim Gifford (patches at jg555 dot com)
Date: 2004-08-17
Initial Package Version: 3.0
Origin: Paul Jarc
Upstream Status: Sent
Description: Fixes a display issue which will only show 33 characters
             then wrap to the next line.
 
--- bash-3.0/lib/readline/display.c.orig	2004-08-17 20:24:39.290067304 +0000
+++ bash-3.0/lib/readline/display.c	2004-08-17 20:24:44.432285568 +0000
@@ -351,14 +351,14 @@
       local_prompt = expand_prompt (p, &prompt_visible_length,
 				       &prompt_last_invisible,
 				       (int *)NULL,
-				       (int *)NULL);
+				       &prompt_physical_chars);
       c = *t; *t = '\0';
       /* The portion of the prompt string up to and including the
 	 final newline is now null-terminated. */
       local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
 						   (int *)NULL,
 						   &prompt_invis_chars_first_line,
-						   &prompt_physical_chars);
+						   (int *)NULL);
       *t = c;
       return (prompt_prefix_length);
     }
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list