Hello François [cc Mike] > Desired behavior with user input of "id<tab><tab><tab><tab>..." is to display > "id ide idea ideas" all as possible completions.
That is certainly not the desired or expected behaviour with readline! Using your words.txt (the one with 'ideas' and all of its prefixes): [hlub@karpaten] ~ > rlwrap -f words.txt cat i<TAB> id ide idea ideas id<TAB> ide idea ideas ide<TAB> idea ideas ideas (pressing TAB now will only add a space, as there are no more completions) in the example above, i<TAB><TAB><TAB> is entered by me, the rest is displayed by readine. For clarity, I have 'set show-all-if-ambiguous On' in my .inputrc, but this doesn't change readline's completion behaviour. If I want "i", I press "i". rlwrap prints "i" and I accept it with <ENTER>" If I want "id", I press "i<TAB>". rlwrap prints "id" and I accept it with "<ENTER" If I want "ide", I press "i<TAB><TAB>". rlwrap prints "ide" etc. So, indeed, "i<TAB><TAB><TAB>" yields "ideas" as the only possible completion - as it should! regards Hans 2011/11/10 Francois Marier <franc...@debian.org> > > Hi Hans, > > For your information, Mike Miller has filed the bug below on the Debian > tracker: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648264 > > Cheers, > Francois > > ----- Forwarded message from Mike Miller <mtmil...@ieee.org> ----- > > When the word completion list contains two valid words, one of which is a > prefix of another, typing <tab> completes the longer word, skipping over the > shorter. > > Discovered while following the instructions at [0] for configuring rlwrap with > clojure. The completion list contains "vec", "vector", and "vector?" for > example. Entering "ve<tab><tab><tab>" yields "vector?" as the only > completion, > consuming the other valid word completions. > > A simpler artificial example: > $ cat words.txt > i > id > ide > idea > ideas > $ rlwrap -f words.txt cat > > Repeatedly pressing <tab> will add one letter at a time until "ideas" is > produced, same for the next word, and so on. > > > [0] http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started > > ----- End forwarded message ----- -- Hans Lub tel/fax +31 (0)30 2899249 Dolomieten 74 3524 VH Utrecht (Nederland) hanslu...@gmail.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org