The bash autocomplete feature does not seem to work with environment variables in 11.04. The current behavior is indicated below
export SCRIPT=/home/user/script
cd $SCRIPT/<tab>
results in a backslash (\) being added before $SCRIPT i.e. the prompt becomes
cd \$SCRIPT/
Same thing happens if cd is substituted with ls or any other command
Also, if there is an executable file in the path contained in $SCRIPT and I want to run that
$SCRIPT/<tab>
Bash does not show the options inside the folder (regardless of whether there is a single file or multiple files/directories inside the path contained in the environment variables).
In other words, autocomplete does not work with environment variables.