diff options
author | obrien <obrien@FreeBSD.org> | 2002-08-06 15:22:41 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-08-06 15:22:41 +0800 |
commit | b6631994a121f2e73a5dab604fe4a8aebf3c6567 (patch) | |
tree | 7650a041eb4b146f1940bd14a6dd1cedeb77706d /shells | |
parent | 6cf4afa3df386996dde63379a36ea57443fbdc5f (diff) | |
download | freebsd-ports-gnome-b6631994a121f2e73a5dab604fe4a8aebf3c6567.tar.gz freebsd-ports-gnome-b6631994a121f2e73a5dab604fe4a8aebf3c6567.tar.zst freebsd-ports-gnome-b6631994a121f2e73a5dab604fe4a8aebf3c6567.zip |
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>
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash/files/patch-bind.c | 16 | ||||
-rw-r--r-- | shells/bash2/files/patch-bind.c | 16 | ||||
-rw-r--r-- | shells/bash3/files/patch-bind.c | 16 |
3 files changed, 48 insertions, 0 deletions
diff --git a/shells/bash/files/patch-bind.c b/shells/bash/files/patch-bind.c new file mode 100644 index 000000000000..f2e14e4e0cc4 --- /dev/null +++ b/shells/bash/files/patch-bind.c @@ -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; + diff --git a/shells/bash2/files/patch-bind.c b/shells/bash2/files/patch-bind.c new file mode 100644 index 000000000000..f2e14e4e0cc4 --- /dev/null +++ b/shells/bash2/files/patch-bind.c @@ -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; + diff --git a/shells/bash3/files/patch-bind.c b/shells/bash3/files/patch-bind.c new file mode 100644 index 000000000000..f2e14e4e0cc4 --- /dev/null +++ b/shells/bash3/files/patch-bind.c @@ -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; + |