[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shift-Enter locks up bash-2.05b
From: |
Chet Ramey |
Subject: |
Re: Shift-Enter locks up bash-2.05b |
Date: |
Mon, 5 Aug 2002 09:51:01 -0400 |
> Machine Type: i386-portbld-freebsd4.6.1
>
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
> 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.
Here's the patch.
*** ../bash-2.05b/lib/readline/bind.c 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;
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/