[Bash-completion-devel] Bug#539365: bash completion of "cd $VARNAME" gets mangled (too smart for its own good?)

Bryce Nesbitt bryce2 at obviously.com
Fri Jul 31 05:25:15 UTC 2009


Package: bash-completion
Version: 20080705

"echo $HOM<tab>" gives "echo $HOME".
"cd $HOM<tab>" gives "cd \$HOME".

True in Etch and Lenny.

Workaround fixes:
1) Set the shopt variable cdable_vars  (but seemingly this only fixes it 
accidentally)
2) Run "complete -F _cd cd"
3) Run "apt-get remove bash-completion" (which only removes the fancy 
completion, not the basic completion)

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272660








More information about the Bash-completion-devel mailing list