bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignore-case option to readline disables nosort option to complete


From: Eduardo Bustamante
Subject: Re: Ignore-case option to readline disables nosort option to complete
Date: Wed, 3 May 2017 09:30:02 -0500

On Wed, May 3, 2017 at 8:59 AM, Jesper Nygårds <address@hidden> wrote:
> The following snippet is shows that if the readline
> option completion-ignore-case is turned on, the nosort option to complete
> has no effect:

I'm unable to reproduce this using the code from the devel branch:

bash-4.4$
GNU bash, version 4.4.12(3)-maint (x86_64-unknown-linux-gnu)
bash-4.4$ . on
bash-4.4$ bind -V | grep ignore-case
completion-ignore-case is set to `on'
bash-4.4$ foo
zoo  noo  boo
bash-4.4$ . off
bash-4.4$ bind -V | grep ignore-case
completion-ignore-case is set to `off'
bash-4.4$ foo
zoo  noo  boo
bash-4.4$ cat on
bind "set completion-ignore-case on"

_foo() {
    COMPREPLY=( zoo noo boo )
    return 0
}

complete -o nosort -F _foo foo
bash-4.4$ cat off
bind "set completion-ignore-case off"

_foo() {
    COMPREPLY=( zoo noo boo )
    return 0
}

complete -o nosort -F _foo foo
bash-4.4$ git rev-parse HEAD
2a39157723ffb7dfc597dfa46b5b6fbd93cc9ea2



I think this was fixed as a consequence of the following thread:
https://lists.gnu.org/archive/html/bug-bash/2017-03/msg00092.html

In this commit:
http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=f698849a75fc781472806182c3dc930077a5d828



reply via email to

[Prev in Thread] Current Thread [Next in Thread]