Article View: gnu.bash.bug
Article #1026Readline backspace char problem, etc.
From: John Franks
Date: Sat, 10 Jun 1989 20:09
Date: Sat, 10 Jun 1989 20:09
55 lines
1689 bytes
1689 bytes
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
Technical Details
Message-ID:
<764@accuvax.nwu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!hopf.math.nwu.edu!johnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!hopf.math.nwu.edu!john From: john@hopf.math.nwu.edu (John Franks) Newsgroups: gnu.bash.bug Subject: Readline backspace char problem, etc. Message-ID: <764@accuvax.nwu.edu> Date: 10 Jun 89 20:09:32 GMT Sender: news@accuvax.nwu.edu Reply-To: john@hopf.math.nwu.edu (John Franks) Distribution: gnu Organization: Northwestern Univ. Evanston, Il. Lines: 55