I exported a variable in ~/.bashrc as follows (followed by source ~/.bashrc)
export w=/home/user/workspace/
When I'm on commandline I try to access sub-directories of $w in following way
user$ vi $w/
After this when I hit the tab key, a mysterious backslash appears
user$ vi \$w/
It disables further tab-completion. Why? May not be vi
specific as it occurs even with ls
.
Bash version 4.2.24(1)-release (i686-pc-linux-gnu) Running Ubuntu 11.04
Edit Workaround: Hit Esc+Ctrl+E before hitting tab.