Edited the title.

The actual error originates from __get_cword_at_cursor_by_ref in
/etc/bash_completion in the code at:

    if [[ "${words[cword]:0:${#cur}}" != "$cur" ]]; then
        # We messed up. At least return the whole word so things keep working
        cur2=${words[cword]}
    else
        cur2=${cur:0:$index}
    fi

The $index in that last expression is -1 in this case.

But then the bash gets a bit deep for me to dig further.

Dave

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/692562

Title:
  completion of inserted option after command throws bash error

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to