How do I restore tab-completion on shell variables on the bash command-line?
As of bash 4.2, this behavior is governed by
shopt -s direxpand # enable
shopt -u direxpand # disable
See http://www.mail-archive.com/[email protected]/msg11251.html for background information.