bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The sequence ^[OP crashes bash-2.05b.0(1)-release


From: epl
Subject: The sequence ^[OP crashes bash-2.05b.0(1)-release
Date: Fri, 27 Jun 2003 18:46:19 +1000 (EST)

I found that the sequence ^[OP (that is, the escape key, followed by
uppercase O, then P) crashes bash-2.05b.0(1)-release on both GNU/Linux and
Tru64-5.1b. This key is mapped to my F1 key on my keyboard under X.

There are other sequences which seems to crash bash, from ^[Oa to ^[Oz
and from ^[OI to ^[OZ

However, I found a patch in Red Hat 9's version of bash. In particular, a
patch called bash-2.05b-readline-oom.patch which I have included below.
The patch has the following ChangeLog entry:
* Wed Aug 07 2002 Phil Knirsch <pknirsch@redhat.com> 2.05b-3
- Fixed out of memory problem with readline.

===
--- bash-2.05b/lib/readline/readline.c.oom      2002-03-13 23:10:46.000000000 
+0100
+++ bash-2.05b/lib/readline/readline.c  2002-08-07 12:02:04.000000000 +0200
@@ -567,7 +567,7 @@
        {
          /* Special case rl_do_lowercase_version (). */
          if (func == rl_do_lowercase_version)
-           return (_rl_dispatch (_rl_to_lower (key), map));
+           return (_rl_dispatch (_rl_to_lower ((unsigned char)key),
map));

          rl_executing_keymap = map;

===

There's also a variety of other patches in Red Hat 9's distribution which
may be useful to apply.

Eddie





reply via email to

[Prev in Thread] Current Thread [Next in Thread]