Bash 2.05b bug
"Matt R. Jezorek" <[email protected]> Tue, 29 Jul 2003 01:13:34 -0400
| Newsgroups | gmane.linux.lsb.implementation |
|---|---|
| Organization | Linux for Education |
| Message-ID | <[email protected]> |
Hiya guys. I dont know if this has been reported or fixed yet in current but here it is. BUG: On the sample implementation you have an issue with bash and key maping. If you are slow releasing the shift key it will cause a nice loop and cpu usage of 100%. 100% reproducable. FIX: Attached you will find a patch for this to fix it. -- Matt R. Jezorek Linux for Education http://www.bluelinux.org/ "We fight to go where we are not wanted. Refuse to go where we are wanted. Then wonder why we are called skitzo on foreign policy" - Al Sharpton
bash-2.05b-shift-enter.patch
(text/x-diff, 563 B)
--- bash-orig/lib/readline/bind.c 2002-01-24 11:15:52.000000000 -0500
+++ bash-2.05b/lib/readline/bind.c 2003-07-29 00:22:40.000000000 -0400
@@ -311,7 +311,7 @@
mapped to something, `abc' to be mapped to something else,
and the function bound to `a' to be executed when the user
types `abx', leaving `bx' in the input queue. */
- if (k.function /* && k.type == ISFUNC */)
+ if (k.function && ((k.type == ISFUNC && k.function != rl_do_lowercase_version) || k.type == ISMACR))
{
map[ANYOTHERKEY] = k;
k.function = 0;