On 3/16/17 1:49 PM, Roee Bar wrote:
> There is no ambiguous in dabbrev-expand - it is well defined what the 
> completion should be: each key press cycles through the matches from most 
> recent to oldest match. This is different than TAB completion, where it is 
> possible to have several matches so it makes sense to display them. That is 
> also the dabbrev-expand behaviour in tcsh when ‘autolist’ (i.e. 
> 'show-all-if-ambiguous’ ) is set.

When show-all-if-ambiguous is set, readline displays the matches if
there is more than one possible completion. It doesn't matter which
completion function you're using; the behavior of the variable is consistent.

In bash's case, dabbrev-expand (which first appeared in bash-4.0) is built
on top of readline's menu completion function, and inherits its behavior.
That means that dabbrev-expand has always honored show-all-if-ambiguous,
since menu completion has honored it since before dabbrev-expand was
introduced. I'm reluctant to change it now.

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

Reply via email to