bash directory completion
In an sh shell, I have an environment variable say APACHE=/etc/apache2/
If I type "cd $APACHE/" then tab, it will complete to "cd /etc/apache2"
However if I try the same thing in a bash shell it won't complete. Instead it just gives "cd \$APACHE".
The problem seems to be with using the cd command. If I type "$APACHE" and then tab, it completes to "/etc/apache2/" as expected.
Is there a way of setting environment varaibles in BASH which I'm missing. I'd be greatful for any help. Thanks.