Comment 5 for bug 663111

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote : Re: bash_completion script errors: undefined variables, failed GLOB

Trivial to reproduce. I've just upgraded from 8.04 -> 10.04 -> 10.10 and it seems bash_completion has been re-enabled for me somewhere along the line. Because I have failglob set <Tab> filename completion is broken.

    $ shopt -u failglob
    $ ls /nonexistant^C
    $ shopt -s failglob
    $ ls /nonexistant-bash: no match: "${COMP_WORDS[@]}"
    $

Both times I typed Tab after "nonexistant". The first time there's no matches and I press ^C to give up. The second time bash immediately gives that error and aborts the line I was part-way through entering.