Re: completion-prefix-display-length doesn't check for common prefix

2016-06-02 Thread Grisha Levit
Looks like a bunch of stuff posted to the google group just came through. This is a dupe. On Wed, Apr 20, 2016 at 5:39 PM, Grisha Levit wrote: > f() { COMPREPLY=(aa bb cc); } > complete -F f f > bind 'set completion-prefix-display-length 2' > > $ f [TAB][

completion-prefix-display-length doesn't check for common prefix

2016-06-02 Thread Grisha Levit
f() { COMPREPLY=(aa bb cc); } complete -F f f bind 'set completion-prefix-display-length 2' $ f [TAB][TAB] ...aa ...bb ...cc None of the completion entries share a common prefix, though the docs suggest that only common prefixes

Re: completion-prefix-display-length doesn't check for common prefix

2016-04-24 Thread Chet Ramey
On 4/24/16 3:36 PM, Grisha Levit wrote: > On Fri, Apr 22, 2016 at 3:23 PM, Chet Ramey chet.ra...@case.edu > 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 .inputrc set >

Re: completion-prefix-display-length doesn't check for common prefix

2016-04-24 Thread Grisha Levit
On Fri, Apr 22, 2016 at 3:23 PM, Chet Ramey chet.ra...@case.edu 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=(a b

Re: completion-prefix-display-length doesn't check for common prefix

2016-04-22 Thread Chet Ramey
On 4/21/16 2:42 PM, Grisha Levit wrote: > f() { COMPREPLY=(aa bb cc); } > complete -F f f > bind 'set completion-prefix-display-length 2' > > $ f [TAB][TAB] > ...aa ...bb ...cc > > None of the completion entries share a common pre

completion-prefix-display-length doesn't check for common prefix

2016-04-21 Thread Grisha Levit
f() { COMPREPLY=(aa bb cc); } complete -F f f bind 'set completion-prefix-display-length 2' $ f [TAB][TAB] ...aa ...bb ...cc None of the completion entries share a common prefix, though the docs suggest that only common prefixes a