I'm running Ubuntu 11.04, and I'm seeing some odd behaviour when I try to use tab-completion in bash on a path that starts with a variable. If I've got TOP=/scratch, and I try to tab-complete:
cd $TOP/foo
it changes to:
cd $TOP/foo
I'd prefer it to complete to: cd $TOP/foobar or cd /scratch/foobar but I'd settle for it just not changing the line and requiring me to un-escape the $.
Does anyone know where in bash/readline I should look to fix this?
question from:https://stackoverflow.com/questions/6418493/bash-variable-expansion-on-tab-complete