Simply typing Shift-Enter in bash-2.05b causes it to enter some kind of
CPU-consuming loop. A kill -9 from another terminal is required to end it. Submitted by: Chet Ramey <chet@nike.ins.cwru.edu>
This commit is contained in:
16
shells/bash/files/patch-bind.c
Normal file
16
shells/bash/files/patch-bind.c
Normal file
@@ -0,0 +1,16 @@
|
||||
*** lib/readline/bind.c.orig Thu Jan 24 11:15:52 2002
|
||||
--- lib/readline/bind.c Wed Jul 31 09:11:18 2002
|
||||
***************
|
||||
*** 312,316 ****
|
||||
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 */)
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
--- 312,316 ----
|
||||
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 && k.function != rl_do_lowercase_version) || k.type == ISMACR))
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
|
||||
16
shells/bash2/files/patch-bind.c
Normal file
16
shells/bash2/files/patch-bind.c
Normal file
@@ -0,0 +1,16 @@
|
||||
*** lib/readline/bind.c.orig Thu Jan 24 11:15:52 2002
|
||||
--- lib/readline/bind.c Wed Jul 31 09:11:18 2002
|
||||
***************
|
||||
*** 312,316 ****
|
||||
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 */)
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
--- 312,316 ----
|
||||
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 && k.function != rl_do_lowercase_version) || k.type == ISMACR))
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
|
||||
16
shells/bash3/files/patch-bind.c
Normal file
16
shells/bash3/files/patch-bind.c
Normal file
@@ -0,0 +1,16 @@
|
||||
*** lib/readline/bind.c.orig Thu Jan 24 11:15:52 2002
|
||||
--- lib/readline/bind.c Wed Jul 31 09:11:18 2002
|
||||
***************
|
||||
*** 312,316 ****
|
||||
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 */)
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
--- 312,316 ----
|
||||
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 && k.function != rl_do_lowercase_version) || k.type == ISMACR))
|
||||
{
|
||||
map[ANYOTHERKEY] = k;
|
||||
|
||||
Reference in New Issue
Block a user