[Bash-completion-devel] shopt -s failglob

Ville Skyttä ville.skytta at iki.fi
Tue Sep 28 20:44:39 UTC 2010


Hello,

"shopt -s failglob" breaks bash completion pretty badly at the moment; at 
least __reassemble_comp_words_by_ref is affected.
https://bugzilla.redhat.com/show_bug.cgi?id=622655

Based on a quick test, the change below appears to fix the "no excludes" case 
in it (haven't tested if it would break something), but I couldn't get the 
other one fixed, provoking it is simply a matter of "shopt -s failglob ; ssh 
<TAB>"

Should we add "failglob-safety" to the roadmap like set -u already is?

The above mentioned change:

         # No, list of word completions separators hasn't changed;
-        eval $2=\( \"\${COMP_WORDS[@]}\" \)
+        eval $2='( "${COMP_WORDS[@]}" )'



More information about the Bash-completion-devel mailing list