On 5/23/12 7:11 AM, Vincent Lefevre wrote: > It seems that $COMP_WORDBREAKS annoys users when filenames contain > one of its characters: > http://lists.gnu.org/archive/html/bug-bash/2005-07/msg00034.html > http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00019.html > http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00163.html > and my bug report: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674084 > > Unsetting $COMP_WORDBREAKS is not a solution, as completion would no > longer work in contexts where such characters are word separators. > > How about the following behavior when the user types [TAB]? > > 1. Try to complete the whole word, ignoring $COMP_WORDBREAKS.
"The whole word" implies some default hidden value for COMP_WORDBREAKS that the user can't touch or modify. The whole raison d'etre for having it in the first place is to allow the user to specify these things. It's easy enough to have COMP_WORDBREAKS only contain whitespace and shell metacharacters. Maybe there should be a shell option to set that. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/