On Fri, Apr 22, 2016 at 3:23 PM, Chet Ramey [email protected]
<http://mailto:[email protected]> wrote:
Bash-4.4 doesn’t do this.
I was testing this with the latest devel version.
$ echo $BASH_VERSION4.4.0(2)-rc1
$ cat .inputrcset completion-prefix-display-length 2
$ f() { COMPREPLY=(aaaaa bbbbb ccccc); }; complete -F f f
$ f ddd<TAB><TAB>
aaaaa bbbbb ccccc
$ f dddd<TAB><TAB>
...a ...b ...c
Note also this strange behavior, which is fixed if
completion-prefix-display-length is unset:
$ f ddddd<TAB><TAB>
aaaaabbbbbccccc
$ bind 'set completion-prefix-display-length 0'
$ f ddddd<TAB><TAB>
aaaaa bbbbb ccccc