Hello, everyone.
bash 4.2 completion misfunctions with failglob option enabled.
This problem doesn't occur in bash 3.2.
Is failglob meant to be used in interactive shell?
$ bash --version
GNU bash, version 4.2.0(1)-release (i686-pc-linux-gnulibc1)
$ # failglob is unset
$ # completion fails
$ shopt -u failglob
$ touch asd123
$ echo asd???
asd123
~ $ echo asdf???
asdf???
$ ls .ba<TAB>sh
.bash_history .bash_logout .bashrc .bashrc~
$ # failglob is set
$ # completion fails
$ shopt -s failglob
$ echo asd???
asd123
$ echo asdf???
-bash: no match: asdf???
$ ls .ba<TAB>bash: no match: words[0]=${!ref}${COMP_WORDS[i]}
Thank you for considering my request.