bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] Key sequence initial prefix of another


From: Chet Ramey
Subject: Re: [Bug-readline] Key sequence initial prefix of another
Date: Sun, 07 Nov 2010 15:48:33 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 11/7/10 6:08 AM, Andre Majorel wrote:
> On 2010-11-06 16:28 -0400, Chet Ramey wrote:
>> On 10/22/10 3:56 AM, Andre Majorel wrote:
>>> Suppose you have readline bindings of different lengths with the
>>> same stem, E.G.
>>>
>>>   "\eg":  " | grep "
>>>   "\egi": " | grep -i "
>>>
>>> To get
>>>
>>>   ls | grep 12
>>>
>>> you might type "ls[esc]g12" but you'll get
>>>
>>>   ls1 | grep 2
>>>
>>> Is this by design ?
>>
>> You don't say which version of readline you're using, but I don't get
>> this behavior on readline-6.0 (from bash-4.0) or readline-6.1 (from
>> bash-4.1).  Both bash versions had all patches applied.
> 
> Thanks for looking. It occurs with Debian libreadline6 6.0-5 and
> 6.1-3.
> 
> I've tried starting bash with INPUTRC pointing to a file
> containing only
> 
> "\eg":  " | grep "
> "\egi": " | grep -i "
> 
> Same behaviour, so it seems it's not something else in my
> inputrc triggering the bug.
> 
> A look at ftp://ftp.debian.org/debian/pool/main/r/readline6/rea
> dline6_6.1-3.debian.tar.gz suggests that they have included all
> available patches (readline61-001.diff and -002). They have a
> few patches of their own but nothing likely to have the effect
> I'm seeing.
> 
> Any suggestion as to what I could try next ?

Build bash-4.0 or bash-4.1 from the versions on ftp.gnu.org, after
applying the patches?  I don't use debian, so I don't have that as
a platform to test on, but I don't get the results you do when using
Mac OS X.

Chet
> 


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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