[gnu.bash.bug] Readline backspace char problem, etc.

john@hopf.math.nwu.edu (John Franks) (06/11/89)

I believe that there is a bug in redline.c where the termcap backspace
string is read.  It seems this string "term_backspace"  is never actually
set to the correct value.  

Also I had to add a couple of declartions to get it to compile with the
Sun C compiler (SunOS 4.0) on Sun 3's and 4's.  Here are the diffs.

diff readline.c readline.c.orig
78,79c78
< static void move_cursor_relative();
< static void output_some_chars();
---
> 
235d233
< static int
240d237
< 	char *get_string_value( );
726a724
>   static void move_cursor_relative ();
1242c1240,1242
<   term_backspace = tgetstr ("le", &buffer);
---
>   BC = tgetstr ("le", &buffer);
> 
>   term_backspace = tgetstr ("bw", &buffer);

In builtins.c there are some embedded newlines in strings:

diff builtins.c builtins.c.orig
363c363,364
< 	command name.\n\n\
---
> 	command name.
> 
367c368,369
< 	respectively.\n\n\
---
> 	respectively.
> 

In shell.c the two functions termination_unwind_protect() and 
throw_to_top_level()  must be declared sighandler.

diff shell.c shell.c.orig
768d767
< sighandler
778d776
< sighandler



John Franks 	Dept of Math. Northwestern University
		Internet	john@math.nwu.edu
		Bitnet		j_franks@nuacc