On 1/19/14, 5:18 PM, Ernest Adrogué wrote: > If I bind TAB to `menu-complete' and set `menu-complete-display-prefix', the > first TAB displays a list of possible completions, which is what I wanted, > but it also inserts the first entry from the list of possible completions, > which is not what I wanted.
I see. This is new information, and a new requirement: you seem to have show-all-if-ambiguous set. > For example, if I do: > > $ cd <TAB> > > it displays the possible completions: > > bar/ fooa/ foob/ > > and inserts `bar/'. But `bar/' is not the longest common prefix, the empty > string is. This is how bash-4.2 behaves. Bash-4.3 will behave like you want. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/